mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 23:38:52 +00:00
make_test_signature: exit nicely on top level exception
Coverity 205411
This commit is contained in:
parent
054b2621b1
commit
fa16df9996
@ -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 New Issue
Block a user