From 934200ef588b0a9ab3b15d07070d95a88965c79d Mon Sep 17 00:00:00 2001 From: Sarah GP Date: Tue, 3 Jan 2017 11:20:16 -0500 Subject: [PATCH] Adds log of require() error --- lib/com.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/com.js b/lib/com.js index c5e862c..3eec43e 100644 --- a/lib/com.js +++ b/lib/com.js @@ -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"; } }