From cd611f42456befc8629bc605e04e0b519d621283 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 7 Jun 2018 18:37:15 -0700 Subject: [PATCH] modules/console: Catch verify errors in fed event. --- modules/console.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/console.cc b/modules/console.cc index eaab592a1..06a200934 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -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;