Bug
- 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:
committed by
Paul Beckingham
parent
bd085a820d
commit
d73766484d
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user