make error reporting more friendly