TW #2047: Exiting the task editor with an error code doesn't remove the lock file
- Thanks to coaxial
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user