Fix formatting of an exception message.