Change format of returned errors.