% Change error message to array of messages