log on no change to db

This commit is contained in:
Christian Grothoff 2019-06-30 17:29:09 +02:00
parent 7263711ad8
commit 0ade45d315
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -57,7 +57,7 @@ static int remove_flag;
*
* @param argc number of arguments from the command line
* @param argv command line arguments
* @return 0 ok, 1 on error
* @return 0 ok, non-zero on error
*/
int
main (int argc,
@ -134,7 +134,7 @@ main (int argc,
{
fprintf (stderr,
"Exchange URL must begin with `http://` or `https://` and end with `/'\n");
return 3;
return 1;
}
}
@ -192,6 +192,14 @@ main (int argc,
TALER_AUDITORDB_plugin_unload (adb);
return 3;
}
if (0 == qs)
{
fprintf (stderr,
"Did not update auditor DB: value existed\n",
qs);
TALER_AUDITORDB_plugin_unload (adb);
return 4;
}
}
TALER_AUDITORDB_plugin_unload (adb);
return 0;