Skip to content

Commit

Permalink
handle stax.* args that aren't valid
Browse files Browse the repository at this point in the history
  • Loading branch information
kla committed Nov 29, 2024
1 parent 04a9914 commit 3f49bb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/staxfile/evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ export default class Evaluator {
}

fetch(attributes: Record<string, any>, path: string): string {
return dig(attributes, path, { required: true })
try {
return dig(attributes, path, { required: true })
} catch (e) {
return path
}
}

platform(): string {
Expand Down

0 comments on commit 3f49bb2

Please sign in to comment.