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

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2016-08-27 17:44:19 +0300
committerGitHub <noreply@github.com>2016-08-27 17:44:19 +0300
commit65255bae65c1bba69ee45c7c88e49bc241c8d361 (patch)
treeea1ec94efd1257a4fe92eac1b920fcbc99b37f82
parent9b1aeb13fa0786022843ea157b6d82a4d8a336f0 (diff)
parent69fd462f3c9f1f961b9599b3f26136d252b949bd (diff)
Merge pull request #748 from torch/funcload
changing function load errors to warnings
-rw-r--r--File.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/File.lua b/File.lua
index 1cc4dfe..62249a3 100644
--- a/File.lua
+++ b/File.lua
@@ -275,7 +275,7 @@ function File:readObject()
local dumped = self:readChar(size):string()
local func, err = loadstring(dumped)
if not func then
- error(string.format('Failed to load function from bytecode: %s', err))
+ io.stderr:write(string.format('Warning: Failed to load function from bytecode: %s', err))
end
local upvalues = self:readObject()
for index,upvalue in ipairs(upvalues) do
@@ -298,7 +298,7 @@ function File:readObject()
local dumped = self:readChar(size):string()
local func, err = loadstring(dumped)
if not func then
- error(string.format('Failed to load function from bytecode: %s', err))
+ io.stderr:write(string.format('Warning: Failed to load function from bytecode: %s', err))
end
if not force then
objects[index] = func