diff options
author | Clement Farabet <clement.farabet@gmail.com> | 2014-03-21 01:34:22 +0400 |
---|---|---|
committer | Clement Farabet <clement.farabet@gmail.com> | 2014-03-21 01:34:22 +0400 |
commit | caf9f69e39486b9a1a2efcd4506ef01cce684da8 (patch) | |
tree | fde5709327f9a209c643838d8a65b156cda04afb /th | |
parent | 3dc150012868cb608196561033162f37155e2492 (diff) |
Simpler error report on script exec.
Diffstat (limited to 'th')
-rw-r--r-- | th | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -94,8 +94,8 @@ if statement then local s = loadstring(statement) local ok,res = pcall(s) if not ok then - print('could not execute statement, skipping') - error(res) + print(res) + os.exit() end -- quit by default if not interactive then os.exit() end |