Skip to content

Commit

Permalink
language touchups for condition reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordowns2000 committed Dec 26, 2023
1 parent 003a3ad commit a731839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime/src/execute/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ const calculateNext = (job: CompiledJobNode, result: any, logger: Logger) => {
try {
if (!edge.condition(result)) {
logger.always(
`Edge ${edge.condition.toString()} evaluated to FALSE; will not start job ${nextJobId}`
`Edge ${edge.condition.toString()} returned false; ${nextJobId} will NOT be executed`
);
continue;
}
} catch (e: any) {
throw new EdgeConditionError(e.message);
}
logger.always(
`Edge ${edge.condition.toString()} evaluated to true; will execute job ${nextJobId} next`
`Edge ${edge.condition.toString()} returned true; ${nextJobId} will be executed next`
);
}
}
Expand Down

0 comments on commit a731839

Please sign in to comment.