improved error handler output