Remove function names from exception messages.