Fixed message name if it is an error instead of exception