commit 4a278083d3ad65adb9a14f73de66d705118a5998
parent ce5977cc81df440fcd5d19094f825970b0131a56
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 11 Oct 2026 15:10:33 +0200
set global_ret on failure
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/exchange-tools/taler-auditor-offline.c b/src/exchange-tools/taler-auditor-offline.c
@@ -363,6 +363,7 @@ load_offline_key (int do_create)
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
"auditor",
"AUDITOR_PRIV_FILE");
+ global_ret = EXIT_NOTCONFIGURED;
test_shutdown ();
return GNUNET_SYSERR;
}
@@ -381,6 +382,7 @@ load_offline_key (int do_create)
"Failed to load auditor key from file `%s': try running `taler-auditor-offline setup'?\n",
fn);
GNUNET_free (fn);
+ global_ret = EXIT_FAILURE;
test_shutdown ();
return GNUNET_SYSERR;
}
diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c
@@ -1088,6 +1088,7 @@ load_offline_key (int do_create)
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
"exchange-offline",
"MASTER_PRIV_FILE");
+ global_ret = EXIT_NOTCONFIGURED;
test_shutdown ();
return GNUNET_SYSERR;
}
@@ -1106,6 +1107,7 @@ load_offline_key (int do_create)
fn,
"could not create file");
GNUNET_free (fn);
+ global_ret = EXIT_FAILURE;
test_shutdown ();
return GNUNET_SYSERR;
}
@@ -4558,6 +4560,8 @@ parse_keys_input (const char *command_name)
op_str,
OP_INPUT_KEYS);
GNUNET_JSON_parse_free (spec);
+ global_ret = EXIT_FAILURE;
+ GNUNET_SCHEDULER_shutdown ();
return NULL;
}
json_decref (in);