Adds condition to error message for ingest.