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:
parent
395624879c
commit
2a7dc12386
1 changed files with 6 additions and 2 deletions
|
@ -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(),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue