Debug messages if something goes wrong, instead of just internal server ...

...error