diff --git a/src/staxfile/evaluator.ts b/src/staxfile/evaluator.ts index 60ccc14..00f01d1 100644 --- a/src/staxfile/evaluator.ts +++ b/src/staxfile/evaluator.ts @@ -79,7 +79,11 @@ export default class Evaluator { } fetch(attributes: Record, path: string): string { - return dig(attributes, path, { required: true }) + try { + return dig(attributes, path, { required: true }) + } catch (e) { + return path + } } platform(): string {