mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
make_test_signature: exit nicely on top level exception
Coverity 205411
This commit is contained in:
parent
054b2621b1
commit
fa16df9996
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
int main(int argc, const char **argv)
|
int main(int argc, const char **argv)
|
||||||
{
|
{
|
||||||
|
TRY_ENTRY();
|
||||||
if (argc > 2)
|
if (argc > 2)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "usage: %s <secret_key>\n", argv[0]);
|
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);
|
std::string signature = cryptonote::make_rpc_payment_signature(skey);
|
||||||
printf("%s\n", signature.c_str());
|
printf("%s\n", signature.c_str());
|
||||||
return 0;
|
return 0;
|
||||||
|
CATCH_ENTRY_L0("main()", 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue