TW #2047: Exiting the task editor with an error code doesn't remove the lock file

- Thanks to coaxial
This commit is contained in:
Paul Beckingham 2018-08-12 09:57:32 -04:00
parent 96f9c3ef45
commit 1c4647708a
3 changed files with 4 additions and 0 deletions

View file

@ -781,6 +781,7 @@ ARE_THESE_REALLY_HARMFUL:
std::cout << format ("Editing failed with exit code {1}.\n", exitcode);
if (-1 == exitcode)
std::cout << std::strerror (captured_errno) << '\n';
File::remove (file.str ());
return CmdEdit::editResult::error;
}