mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW #2047: Exiting the task editor with an error code doesn't remove the lock file
- Thanks to coaxial
This commit is contained in:
parent
96f9c3ef45
commit
1c4647708a
3 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue