Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 22, 2020
1 parent 23d2dc0 commit 4b0a097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spack/src/resolvers/mod.rs
Expand Up @@ -52,7 +52,7 @@ impl NodeResolver {
}
}

bail!("not found")
bail!("file not found: {}", path.display())
}

/// Resolve a path as a directory, using the "main" key from a package.json
Expand Down Expand Up @@ -99,13 +99,13 @@ impl NodeResolver {
// 2. If X/index.json is a file, parse X/index.json to a JavaScript object.
// 3. If X/index.node is a file, load X/index.node as binary addon.
for ext in EXTENSIONS {
let ext_path = path.join(format!("index{}", ext));
let ext_path = path.join(format!("index.{}", ext));
if ext_path.is_file() {
return Ok(ext_path);
}
}

bail!("not found")
bail!("index not found: {}", path.display())
}

/// Resolve by walking up node_modules folders.
Expand Down

0 comments on commit 4b0a097

Please sign in to comment.