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

@ -331,3 +331,4 @@ suggestions:
Martin F. Krafft
tom-doerr
ad-si
coaxial

View file

@ -99,6 +99,8 @@
Thanks to Janik Rabe
- TW #2020 reserved.lines is not affecting the burndown height
Thanks to ad₋si
- TW #2047 Exiting the task editor with an error code doesn't remove the lock file
Thanks to coaxial
- TW #2051 doc/man: ready tasks sorted with started tasks 1st
Thanks to Simon Désaulniers
- TW #2053 Do not set CMP0037 on CMake 3.11.0 and above

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;
}