Skip to content

Commit

Permalink
chore: Enrich error with sessionId (#220)
Browse files Browse the repository at this point in the history
Just to make `grep` a little easier in docker logs πŸ‘Œ
  • Loading branch information
DafyddLlyr authored Dec 4, 2023
1 parent 606251e commit e3e09c0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/export/digitalPlanning/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,9 @@ export class DigitalPlanning {

if (!isValid) {
throw Error(
`Invalid DigitalPlanning payload. Errors: ${JSON.stringify(
validate.errors,
null,
2,
)}`,
`Invalid DigitalPlanning payload for session ${
this.sessionId
}. Errors: ${JSON.stringify(validate.errors, null, 2)}`,
);
}
return true;
Expand Down

0 comments on commit e3e09c0

Please sign in to comment.