summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Schwieren <tristan.schwieren@tum.de>2022-11-24 14:10:53 +0100
committerTristan Schwieren <tristan.schwieren@tum.de>2022-11-24 14:10:53 +0100
commitfe3240e7a5c5d50b0ba51586654a1f99cb8bbbe2 (patch)
treeca04e91e4a10f4ebd821039aca365811865da75b
parentefedc9589bdfb9a490acbc405ef70b4a32d4ae82 (diff)
- non zero exit code on failed resolvedev/trizuz/did
-rw-r--r--src/reclaim/gnunet-did.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/reclaim/gnunet-did.c b/src/reclaim/gnunet-did.c
index b0c7f80c1..6a3cc05c2 100644
--- a/src/reclaim/gnunet-did.c
+++ b/src/reclaim/gnunet-did.c
@@ -239,13 +239,16 @@ print_did_document (
void *cls
)
{
- if (GNUNET_OK == status)
+ if (GNUNET_OK == status) {
printf ("%s\n", did_document);
- else
+ ret = 0;
+ }
+ else {
printf ("An error occured while resoling the DID\n");
+ ret = 1;
+ }
GNUNET_SCHEDULER_add_now (cleanup, NULL);
- ret = 0;
return;
}
@@ -259,7 +262,7 @@ resolve_did ()
{
printf ("An error occured while resoling the DID\n");
GNUNET_SCHEDULER_add_now (cleanup, NULL);
- ret = 0;
+ ret = 1;
return;
}
}