Error handling with pipmak.getimage/pipmak.newimage
Status: Alpha
Brought to you by:
cwalther
From: Andrea V. <and...@gm...> - 2009-07-20 10:07:39
|
Hi Chriss, is there a reason why standard lua error handling functions doesn't work with pipmak.getimage/pipmak.newimage? I.e. in the code: local success,errcode = pcall(function() pipmak.getimage("test.png") end) variable success is always true both is test.png exists or not, and an error message is printed out!! I would like to have a behaviour like this (in pseudo-code): if image1 exists then load image1 else load image2 end and, off course, without any error message printing! Should be possible change this in future? Thank you! -Andrea |