tweaked the deprecated error handler to actually display the deprecation message

I've also removed uninterested information (like the trigger_error stack
frame).