Skip to content

Commit

Permalink
added colliding files paths to Ambiguity Error
Browse files Browse the repository at this point in the history
  • Loading branch information
nadav-dav committed Nov 7, 2014
1 parent 70dcbb7 commit 674f2c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/main.js
Expand Up @@ -53,7 +53,9 @@ function getModule(requirement){
var error = "";

if (ambiguousFileNames[requirement] !== undefined){
throw new Error('Ambiguity Error: There are more then one files that is named '+requirement+'. \n\t' + ambiguousFileNames[requirement].join('\n\t'));
throw new Error('Ambiguity Error: There are more then one files that is named '+requirement+
'. \n\t' + ambiguousFileNames[requirement].join('\n\t') +
'\nYou can use require("rekuire").ignore("folder_to_ignore") to prevent Rekuire from scanning unwanted folders.');
}

if ( filesInProject[requirement] !== undefined){
Expand Down

0 comments on commit 674f2c6

Please sign in to comment.