fix(config): pass include errors as nested cause
This commit is contained in:
parent
37b1aaeb51
commit
6ab7d9c6e4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue