Add exception type to error message.