Fix error message handling in rt-cli, related to single-user mode

See #4428
This commit is contained in:
Hombre
2018-03-10 17:34:06 +01:00
parent ef7e09a372
commit 191a139445
2 changed files with 5 additions and 3 deletions

View File

@@ -158,8 +158,10 @@ int main (int argc, char **argv)
try {
Options::load (quickstart);
} catch (Options::Error &) {
printf ("Fatal error!\nThe RT_SETTINGS and/or RT_PATH environment variables are set, but use a relative path. The path must be absolute!\n");
} catch (Options::Error &e) {
std::cerr << std::endl
<< "FATAL ERROR:" << std::endl
<< e.get_msg() << std::endl;
return -2;
}

View File

@@ -81,7 +81,7 @@ bool Options::checkDirPath (Glib::ustring &path, Glib::ustring errString)
return true;
} else {
if (!errString.empty()) {
printf ("%s\n", errString.c_str());
std::cerr << errString << std::endl;
}
return false;