changed error message type