mirror of https://github.com/djcb/mu.git
server: improve error message
This commit is contained in:
parent
6b07819d9a
commit
000c19e505
|
@ -224,17 +224,17 @@ struct Context {
|
||||||
"some other mu running?");
|
"some other mu running?");
|
||||||
else
|
else
|
||||||
print_error((MuError)gerr->code,
|
print_error((MuError)gerr->code,
|
||||||
"cannot open database @ %s:%s; "
|
"cannot open database @ %s:%s; already running? "
|
||||||
"please try '%s", dbpath,
|
"if not, please try '%s", dbpath,
|
||||||
gerr->message ? gerr->message : "something went wrong",
|
gerr->message ? gerr->message : "something went wrong",
|
||||||
mu_init.c_str());
|
mu_init.c_str());
|
||||||
} else
|
} else
|
||||||
print_error(MU_ERROR,
|
print_error(MU_ERROR,
|
||||||
"cannot open database @ %s; please try '%s'",
|
"cannot open database @ %s; already running? if not, please try '%s'",
|
||||||
dbpath, mu_init.c_str());
|
dbpath, mu_init.c_str());
|
||||||
|
|
||||||
throw Mu::Error (Error::Code::Store, &gerr/*consumed*/,
|
throw Mu::Error (Error::Code::Store, &gerr/*consumed*/,
|
||||||
"failed to open database @ %s; please try '%s'",
|
"failed to open database @ %s; already running? if not, please try '%s'",
|
||||||
dbpath, mu_init.c_str());
|
dbpath, mu_init.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue