Skip to content

Commit

Permalink
Adds log of require() error
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahghp committed Jan 3, 2017
1 parent e12c065 commit 934200e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/com.js
Expand Up @@ -54,6 +54,7 @@ if (com == null) {
com = stub;
} else {
console.log("It looks like serialport didn't compile properly. This is a common problem and its fix is well documented here https://github.com/voodootikigod/node-serialport#to-install");
console.log("The result of requiring the package is: ", sp);
throw "Missing serialport dependency";
}
}
Expand Down

0 comments on commit 934200e

Please sign in to comment.