create tables in taler-auditor-sign instead of failing obscurely
This commit is contained in:
parent
b46735fbaf
commit
7123015dbc
@ -196,7 +196,8 @@ main (int argc,
|
||||
argc, argv) < 0)
|
||||
return 1;
|
||||
cfg = GNUNET_CONFIGURATION_create ();
|
||||
if (GNUNET_SYSERR == GNUNET_CONFIGURATION_load (cfg,
|
||||
if (GNUNET_SYSERR ==
|
||||
GNUNET_CONFIGURATION_load (cfg,
|
||||
cfgfile))
|
||||
{
|
||||
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
|
||||
@ -355,6 +356,21 @@ main (int argc,
|
||||
GNUNET_free (eddsa_priv);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Create required tables */
|
||||
if (GNUNET_OK !=
|
||||
adb->create_tables (adb->cls))
|
||||
{
|
||||
fprintf (stderr,
|
||||
"Failed to create tables in auditor's database\n");
|
||||
TALER_AUDITORDB_plugin_unload (adb);
|
||||
GNUNET_free (dks);
|
||||
GNUNET_free (sigs);
|
||||
GNUNET_free (eddsa_priv);
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
/* Update DB */
|
||||
{
|
||||
enum GNUNET_DB_QueryStatus qs;
|
||||
|
Loading…
Reference in New Issue
Block a user