You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice, if you'd prelace all die(notice) commands by another error mechanism. E.g. trigger error, return false or exceptions. Using die makes it impossible, to handle errors in image processing. Not all processes are standalone scripts.
The text was updated successfully, but these errors were encountered:
die should only be triggered if you have the debug flag enabled (which I think is enabled by default).
However, you're right. Die is a little archaic and should be replaced with exceptions.
...and maybe debug should be defaulted to false - but then I'd get a tonne of emails when scripts fail silently and no one knows why :P
It would be nice, if you'd prelace all die(notice) commands by another error mechanism. E.g. trigger error, return false or exceptions. Using die makes it impossible, to handle errors in image processing. Not all processes are standalone scripts.
The text was updated successfully, but these errors were encountered: