Fix exception message formatting