diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-17 08:46:11 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-17 08:46:11 -0800 |
commit | 12b0a2a7b6f0c87166ae3e9522bb4581cf069957 (patch) | |
tree | f328cf9576dc90394394ab7285be1a8ee602778a /src/lua.c | |
parent | 59ef5da1d9161e249cd1cd8f68b021428f8523c9 (diff) | |
download | teliva-12b0a2a7b6f0c87166ae3e9522bb4581cf069957.tar.gz |
more protection against data loss
Diffstat (limited to 'src/lua.c')
-rw-r--r-- | src/lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua.c b/src/lua.c index 6e879c0..44b66b4 100644 --- a/src/lua.c +++ b/src/lua.c @@ -376,7 +376,7 @@ void save_to_current_definition_and_editor_buffer (lua_State *L, const char *def int outfd = mkstemp(outfilename); if (outfd == -1) { endwin(); - perror("error in creating temporary file"); + perror("save_to_current_definition_and_editor_buffer: error in creating temporary file"); abort(); } FILE *out = fdopen(outfd, "w"); @@ -634,7 +634,7 @@ void save_note_to_editor_buffer (lua_State *L, int cursor) { int outfd = mkstemp(outfilename); if (outfd == -1) { endwin(); - perror("error in creating temporary file"); + perror("save_note_to_editor_buffer: error in creating temporary file"); abort(); } FILE *out = fdopen(outfd, "w"); |