- Fixed Bug #1060 where an error that was thrown by undo was not
  correctly caught and reported.
- Added a couple of tests to ensure that the correct error was
  caught and reported.
This commit is contained in:
Scott Kostyshak 2012-08-10 23:49:42 -04:00 committed by Paul Beckingham
parent bd085a820d
commit d73766484d
2 changed files with 7 additions and 3 deletions

View file

@ -48,7 +48,7 @@ int CmdUndo::execute (std::string& output)
{
// Detect attemps to modify the task.
if (context.a3.extract_modifications ().size () > 0)
throw STRING_CMD_UNDO_MODS;
throw std::string (STRING_CMD_UNDO_MODS);
context.tdb2.revert ();
context.tdb2.commit ();