0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-14 16:46:50 +01:00

ircd:Ⓜ️🆔 Improve version check exception msg.

This commit is contained in:
Jason Volk 2019-08-10 08:03:41 -07:00
parent 395624879c
commit 2a7dc12386

View file

@ -747,7 +747,9 @@ ircd::m::id::event::v3::v3(const string_view &id)
if(unlikely(version() != "3"))
throw m::INVALID_MXID
{
"Not a version 3 event mxid"
"'%s' is not a version 3 event mxid; maybe version %s?",
id,
version(),
};
}
@ -816,7 +818,9 @@ ircd::m::id::event::v4::v4(const string_view &id)
if(unlikely(version() != "4"))
throw m::INVALID_MXID
{
"Not a version 4 event mxid"
"'%s' is not a version 4 event mxid; maybe version %s?",
id,
version(),
};
}