From 6ab7d9c6e43aeecb9fc1112ad35e2919a253da58 Mon Sep 17 00:00:00 2001 From: ssube Date: Fri, 1 Nov 2019 05:05:46 -0500 Subject: [PATCH] fix(config): pass include errors as nested cause --- src/config/type/Include.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/type/Include.ts b/src/config/type/Include.ts index daa11ba..753db30 100644 --- a/src/config/type/Include.ts +++ b/src/config/type/Include.ts @@ -22,7 +22,7 @@ export const includeType = new YamlType('!include', { throw new NotFoundError('included file does not exist'); } } catch (err) { - throw new NotFoundError('included file does not exist'); + throw new NotFoundError('included file does not exist', err); } }, construct(path: string): unknown {