diff options
author | Solderpunk <solderpunk@sdf.org> | 2018-12-14 10:51:03 +0000 |
---|---|---|
committer | Solderpunk <solderpunk@sdf.org> | 2018-12-14 10:51:03 +0000 |
commit | 3c8dee0ba7c937a4fa092be533de25de0951dd5e (patch) | |
tree | cc6c67c0a76ba59c30d530a3490737f980efed39 /telem.lua | |
parent | Fix bug where all posts appeared to be made at present day, present time (hah... (diff) |
Permit graceful cancellation of thread saving.
Diffstat (limited to 'telem.lua')
-rwxr-xr-x | telem.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -440,6 +440,10 @@ end function do_type_save() io.write("Save thread to file: ") local filename = io.read() + if string.len(filename) == 0 then + print("Saving cancelled.") + return + end local ret, err = do_type_savefile(filename) if ret == nil then print(err) end end |