diff options
author | Clement Farabet <clement.farabet@gmail.com> | 2011-09-05 08:25:25 +0400 |
---|---|---|
committer | Clement Farabet <clement.farabet@gmail.com> | 2011-09-05 08:25:25 +0400 |
commit | 3804abd138d4898ca5576e17cac504ff6fa8d459 (patch) | |
tree | f6efacb0b4d0b304484b162afccd8d2cabb565a5 | |
parent | bfab10dd8ab7ad2561979470a544524ceb79e4fc (diff) |
Switch close/error.
-rw-r--r-- | BatchOptimization.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BatchOptimization.lua b/BatchOptimization.lua index 5ccd8fe..f5feb3a 100644 --- a/BatchOptimization.lua +++ b/BatchOptimization.lua @@ -316,5 +316,5 @@ function Batch:setup_mapreduce () parallel.children:send(self.criterion) end local ok,err = pcall(setup) - if not ok then error(err) parallel.close() end + if not ok then parallel.close() error(err) end end |