Correct log message

Signed-off-by: Andrew Shirley <andrew.shirley@argos.co.uk>
This commit is contained in:
Andrew Shirley
2022-03-04 15:29:44 +00:00
parent 52ac0e6775
commit 07400fd84b
@@ -72,17 +72,17 @@ export class ProcessorOutputCollector {
if (i.type === 'entity') {
let entity: Entity;
const location = stringifyLocationRef(i.location);
try {
entity = validateEntityEnvelope(i.entity);
} catch (e) {
assertError(e);
this.logger.debug(`Envelope validation failed at ${i.location}, ${e}`);
this.logger.debug(`Envelope validation failed at ${location}, ${e}`);
this.errors.push(e);
return;
}
const location = stringifyLocationRef(i.location);
// Note that at this point, we have only validated the envelope part of
// the entity data. Annotations are not part of that, so we have to be
// defensive. If the annotations were malformed (e.g. were not a valid