mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
bd085a820d
commit
d73766484d
2 changed files with 7 additions and 3 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue