Fix typo in error message

This commit is contained in:
raunaqrox 2019-03-20 23:12:02 +05:30
parent 1d7ed8167a
commit f9311fceca
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ export function loadSync(filename: string, options?: Options): PackageDefinition
options = options || {};
if (!!options.includeDirs) {
if (!(Array.isArray(options.includeDirs))) {
throw new Error('The include option must be an array');
throw new Error('The includeDirs option must be an array');
}
addIncludePathResolver(root, options.includeDirs as string[]);
}