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:
commit
3d3c216705
|
@ -83,6 +83,7 @@ function imagebox:set_image(image)
|
|||
local success, result = pcall(surface.load, image)
|
||||
if not success then
|
||||
print("Error while reading '" .. image .. "': " .. result)
|
||||
print(debug.traceback())
|
||||
return false
|
||||
end
|
||||
image = result
|
||||
|
|
Loading…
Reference in New Issue