diff options
author | default <nobody@localhost> | 2022-11-25 10:56:34 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-25 10:56:34 +0100 |
commit | 1acfe8fc54da32e93758b4d93b0df56431c7ee4f (patch) | |
tree | dff56f15e2d0392a8960c2f47b58a17e94ed6648 /data.c | |
parent | 45be9a1cb1971786c72f82f8d236edbdfd662b84 (diff) |
Fixed return value of srv_open().
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -72,10 +72,10 @@ int srv_open(char *basedir, int auto_upgrade) if (auto_upgrade) ret = db_upgrade(&error); else { - if (xs_number_get(xs_dict_get(srv_config, "layout")) < db_layout) { - ret = 0; + if (xs_number_get(xs_dict_get(srv_config, "layout")) < db_layout) error = xs_fmt("ERROR: db layout changed - execute 'snac upgrade' first"); - } + else + ret = 1; } } |