summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--listener.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/listener.lua b/listener.lua
index c47cd9a..66d7f21 100644
--- a/listener.lua
+++ b/listener.lua
@@ -16,5 +16,8 @@ function main()
end
end
-pcall(main)
+local ok, err = pcall(main)
+if not ok then
+ print(err)
+end
print("all done")