string::size_type pos = str.find(delim);
if (pos == string::npos)
{
+ if (delim == "..")
+ {
+ cerr << _("Did not find delimiter '..' between snapshot numbers.") << endl
+ << _("See 'man snapper' for further instructions.") << endl;
+ exit(EXIT_FAILURE);
+ }
+
cerr << _("Invalid snapshots.") << endl;
exit(EXIT_FAILURE);
}
if (getopts.numArgs() != 1)
{
cerr << _("Command 'status' needs one argument.") << endl;
+
+ if (getopts.numArgs() == 2)
+ {
+ cerr << _("Maybe you forgot the delimiter '..' between the snapshot numbers.") << endl
+ << _("See 'man snapper' for further instructions.") << endl;
+ }
+
exit(EXIT_FAILURE);
}
}
catch (const DBus::ErrorException& e)
{
+ if (strcmp(e.name(), "error.unknown_config") == 0 && config_name == "root")
+ {
+ cerr << _("The config 'root' does not exist. Likely snapper is not configured.") << endl
+ << _("See 'man snapper' for further instructions.") << endl;
+ exit(EXIT_FAILURE);
+ }
+
cerr << error_description(e) << endl;
exit(EXIT_FAILURE);
}
+-------------------------------------------------------------------
+Fri Dec 12 10:34:37 CET 2014 - aschnell@suse.de
+
+- improved error messages (bsc#889928 and bsc#903834)
+
-------------------------------------------------------------------
Thu Dec 11 17:58:14 CET 2014 - aschnell@suse.de