improved the error message format