Skip to content

Commit

Permalink
fix(config): pass include errors as nested cause
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Nov 1, 2019
1 parent 37b1aae commit 6ab7d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/type/Include.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit 6ab7d9c

Please sign in to comment.