fixed output formatting for error message