Set ids on error messages