Merge pull request #106 from blueyed/traceback-with-imagebox-set_image-error

Print debug.traceback() with imagebox:set_image, when reading image failed
This commit is contained in:
Emmanuel Lepage Vallée 2015-02-09 19:50:18 +00:00
commit 3d3c216705
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ function imagebox:set_image(image)
local success, result = pcall(surface.load, image) local success, result = pcall(surface.load, image)
if not success then if not success then
print("Error while reading '" .. image .. "': " .. result) print("Error while reading '" .. image .. "': " .. result)
print(debug.traceback())
return false return false
end end
image = result image = result