Skip to content

Commit

Permalink
fix(sdk): tweak error handling in EventAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Quazia authored and topocount committed Sep 23, 2024
1 parent 0778732 commit 8b6cf3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/sdk/src/Actions/EventAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,10 @@ export class EventAction extends DeployableTarget<
): boolean {
const fieldValue = decodedArgs[criteria.fieldIndex];
if (fieldValue === undefined) {
throw new FieldValueUndefinedError({ decodedArgs, criteria, fieldValue });
throw new FieldValueUndefinedError({
criteria,
fieldValue,
});
}
return this.validateFieldAgainstCriteria(criteria, fieldValue, {
decodedArgs,
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ interface EventActionValidationMeta {
*
* @type {Log}
*/
log: Log;
log?: Log;
/**
* The value pulled off the log being validated against
*
Expand Down

0 comments on commit 8b6cf3d

Please sign in to comment.