Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/trepl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/th
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2014-03-21 01:34:22 +0400
committerClement Farabet <clement.farabet@gmail.com>2014-03-21 01:34:22 +0400
commitcaf9f69e39486b9a1a2efcd4506ef01cce684da8 (patch)
treefde5709327f9a209c643838d8a65b156cda04afb /th
parent3dc150012868cb608196561033162f37155e2492 (diff)
Simpler error report on script exec.
Diffstat (limited to 'th')
-rw-r--r--th4
1 files changed, 2 insertions, 2 deletions
diff --git a/th b/th
index 554865f..f02da33 100644
--- a/th
+++ b/th
@@ -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