make_test_signature: exit nicely on top level exception

Coverity 205411
This commit is contained in:
moneromooo-monero 2019-10-26 08:23:02 +00:00
parent 054b2621b1
commit fa16df9996
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@
int main(int argc, const char **argv)
{
TRY_ENTRY();
if (argc > 2)
{
fprintf(stderr, "usage: %s <secret_key>\n", argv[0]);
@ -57,4 +58,5 @@ int main(int argc, const char **argv)
std::string signature = cryptonote::make_rpc_payment_signature(skey);
printf("%s\n", signature.c_str());
return 0;
CATCH_ENTRY_L0("main()", 1);
}