make error messages more friendly