mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/console: Catch verify errors in fed event.
This commit is contained in:
parent
ca1507cd48
commit
cd611f4245
1 changed files with 9 additions and 2 deletions
|
@ -6613,8 +6613,15 @@ console_cmd__fed__event(opt &out, const string_view &line)
|
|||
|
||||
out << pretty(event) << std::endl;
|
||||
|
||||
if(!verify(event))
|
||||
out << "- SIGNATURE FAILED" << std::endl;
|
||||
try
|
||||
{
|
||||
if(!verify(event))
|
||||
out << "- SIGNATURE FAILED" << std::endl;
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
out << "- SIGNATURE FAILED: " << e.what() << std::endl;
|
||||
}
|
||||
|
||||
if(!verify_hash(event))
|
||||
out << "- HASH MISMATCH: " << b64encode_unpadded(hash(event)) << std::endl;
|
||||
|
|
Loading…
Reference in a new issue