Updates from Wed July 15th

This commit is contained in:
Spencer Ahrens 2015-07-15 19:05:08 +02:00
commit 2bc7fea417
1 changed files with 10 additions and 1 deletions

View File

@ -150,7 +150,16 @@ class DependencyGraph {
getOrderedDependencies(entryPath) { getOrderedDependencies(entryPath) {
return this.load().then(() => { return this.load().then(() => {
const absolutePath = path.resolve(this._getAbsolutePath(entryPath)); const absPath = this._getAbsolutePath(entryPath);
if (absPath == null) {
throw new NotFoundError(
'Could not find source file at %s',
entryPath
);
}
const absolutePath = path.resolve(absPath);
if (absolutePath == null) { if (absolutePath == null) {
throw new NotFoundError( throw new NotFoundError(