Unify error message output and update error messages.