[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] 02/03: force user to provide user details
From: |
gnunet |
Subject: |
[taler-anastasis] 02/03: force user to provide user details |
Date: |
Sat, 16 May 2020 19:25:24 +0200 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis.
commit a5be1d4304c06396a770d5e01e7c6f5011041304
Author: Dennis Neufeld <address@hidden>
AuthorDate: Sat May 16 15:58:43 2020 +0000
force user to provide user details
---
src/cli/anastasis-cli-splitter.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/cli/anastasis-cli-splitter.c b/src/cli/anastasis-cli-splitter.c
index 73dc646..298d7a7 100644
--- a/src/cli/anastasis-cli-splitter.c
+++ b/src/cli/anastasis-cli-splitter.c
@@ -70,7 +70,7 @@ read_keyboard_command (void *cls)
GNUNET_SCHEDULER_shutdown ();
return;
}
-
+
fprintf (stderr,
"Unknown command '%c'\n",
(char) input);
@@ -87,7 +87,14 @@ start_read_keyboard ()
static struct GNUNET_DISK_FileHandle fh = { STDIN_FILENO };
GNUNET_assert (NULL == keyboard_task);
-
+
+ if (! import_id)
+ {
+ printf ("Please provide user details with option '-me file.json'!\n");
+ GNUNET_SCHEDULER_shutdown ();
+ return;
+ }
+
printf ("'x' to quit\n");
printf ("Waiting for keyboard input\n");
keyboard_task = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL,
@@ -164,7 +171,7 @@ main (int argc,
{
int ret;
- GNUNET_log_setup ("test-anastasis",
+ GNUNET_log_setup ("anastasis-splitter",
"DEBUG",
NULL);
--
To stop receiving notification emails like this one, please contact
address@hidden.