modified the Error message formatting