From: Arvin Schnell Date: Tue, 10 May 2011 14:46:22 +0000 (+0200) Subject: - better error messages X-Git-Tag: v0.1.3~387 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0b9f7fe2d3fbae7deac2cbc70d6fa70cc480ab2;p=thirdparty%2Fsnapper.git - better error messages --- diff --git a/snapper/Snapper.cc b/snapper/Snapper.cc index 07b283ab..5b705a18 100644 --- a/snapper/Snapper.cc +++ b/snapper/Snapper.cc @@ -546,7 +546,7 @@ namespace snapper if (config_name.empty() || config_name.find_first_of(" \t") != string::npos) { - throw AddConfigFailedException("illegal config"); + throw AddConfigFailedException("illegal config name"); } if (!boost::starts_with(subvolume, "/")) @@ -581,7 +581,7 @@ namespace snapper quote(CONFIGSDIR "/" + config_name)); if (cmd1.retcode() != 0) { - throw AddConfigFailedException("copying template failed"); + throw AddConfigFailedException("copying config template failed"); } try