Skip to content

Commit

Permalink
Merge pull request #24 from jsuchome/master
Browse files Browse the repository at this point in the history
catch ConfigNotFoundException&
  • Loading branch information
jsuchome committed Sep 13, 2013
2 parents 721071a + 2f15dfd commit 4dad48a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion agent-snapper/src/SnapperAgent.cc
Expand Up @@ -505,9 +505,14 @@ YCPValue SnapperAgent::Execute(const YCPPath &path, const YCPValue& arg,
{
Snapper::deleteConfig(name);
}
catch (const ConfigNotFoundException& e)
{
y2error("deleting config '%s' failed (%s).", name.c_str(), e.what());
return YCPBoolean (false);
}
catch (const DeleteConfigFailedException& e)
{
y2error("deleting config failed (%s).", e.what());
y2error("deleting config '%s' failed (%s).", name.c_str(), e.what());
return YCPBoolean (false);
}
return ret;
Expand Down

0 comments on commit 4dad48a

Please sign in to comment.