mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Fixed return value of srv_open().
This commit is contained in:
parent
45be9a1cb1
commit
1acfe8fc54
6
data.c
6
data.c
@ -72,10 +72,10 @@ int srv_open(char *basedir, int auto_upgrade)
|
|||||||
if (auto_upgrade)
|
if (auto_upgrade)
|
||||||
ret = db_upgrade(&error);
|
ret = db_upgrade(&error);
|
||||||
else {
|
else {
|
||||||
if (xs_number_get(xs_dict_get(srv_config, "layout")) < db_layout) {
|
if (xs_number_get(xs_dict_get(srv_config, "layout")) < db_layout)
|
||||||
ret = 0;
|
|
||||||
error = xs_fmt("ERROR: db layout changed - execute 'snac upgrade' first");
|
error = xs_fmt("ERROR: db layout changed - execute 'snac upgrade' first");
|
||||||
}
|
else
|
||||||
|
ret = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user