summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-context.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-06-07 20:00:14 +0300
committerMarius <mariausol@gmail.com>2012-06-07 20:00:14 +0300
commit901949f2e0eddb33046bc7628f831560cc380001 (patch)
tree69928da8ee057ec66124efa7ca9734a4466d702a /scripts/context/lua/mtx-context.lua
parent5ff2784a32bf7e056784855bfc25ff147ea3b5be (diff)
downloadcontext-901949f2e0eddb33046bc7628f831560cc380001.tar.gz
beta 2012.06.07 18:39
Diffstat (limited to 'scripts/context/lua/mtx-context.lua')
-rw-r--r--scripts/context/lua/mtx-context.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua
index be492f5b9..3aff2bee2 100644
--- a/scripts/context/lua/mtx-context.lua
+++ b/scripts/context/lua/mtx-context.lua
@@ -643,14 +643,7 @@ function scripts.context.run(ctxdata,filename)
end
os.exit(1)
break
- elseif returncode > 0 then
- report("fatal error: return code: %s",returncode or "?")
- if resultname then
- result_save_error(oldbase,newbase)
- end
- os.exit(returncode)
- break
- else
+ elseif returncode == 0 then
multipass_copyluafile(jobname)
newhash = multipass_hashfiles(jobname)
if multipass_changed(oldhash,newhash) then
@@ -658,6 +651,13 @@ function scripts.context.run(ctxdata,filename)
else
break
end
+ else
+ report("fatal error: return code: %s",returncode or "?")
+ if resultname then
+ result_save_error(oldbase,newbase)
+ end
+ os.exit(1) -- (returncode)
+ break
end
--
end