Skip to content

Commit

Permalink
feat(json-sets): show description as error message instead of logical…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
julianpoemp committed Feb 19, 2024
1 parent 9dde026 commit 63acb0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/json-sets/src/lib/decision-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export class DecisionTreeCombination<T, U> extends DecisionTreeNode<T, U> {
if (product.length === 0) {
this._errors.push(
new JSONSetValidationError(
`Logical "${this.combination}" failed for condition "${this.path}."`, this.path
this.description ?? `Logical "${this.combination}" failed for condition "${this.path}."`, this.path
)
);
product = [];
Expand All @@ -428,7 +428,7 @@ export class DecisionTreeCombination<T, U> extends DecisionTreeNode<T, U> {
if (this._possibleSelections.length === 0) {
this._errors.push(
new JSONSetValidationError(
`Logical "${this.combination}" failed for condition "${this.path}."`, this.path
this.description ?? `Logical "${this.combination}" failed for condition "${this.path}."`, this.path
)
);
this._possibleSelections = [];
Expand Down

0 comments on commit 63acb0b

Please sign in to comment.