fix exception message formatting