mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
Lua
- fixed task_exit hook throwing exception under certain circumstances under Ubuntu. - task_exit now exits with exit (0) instead.
This commit is contained in:
parent
5bc1bfe331
commit
4a1edfb9be
1 changed files with 3 additions and 1 deletions
|
@ -48,6 +48,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include "Context.h"
|
||||
#include "API.h"
|
||||
|
||||
|
@ -223,7 +224,8 @@ static int api_task_debug_message (lua_State* L)
|
|||
static int api_task_exit (lua_State* L)
|
||||
{
|
||||
// TODO Is this the correct exception? How does the shell handle this?
|
||||
throw std::string ("Exiting.");
|
||||
std::cout << "Exiting." << std::endl;
|
||||
exit (0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue