Merge custom metadata early (in the error constructor)