diff --git a/lib/common.js b/lib/common.js index 7ad4496..8aa246d 100644 --- a/lib/common.js +++ b/lib/common.js @@ -33,6 +33,7 @@ common.safeRequire = (moduleName) => { try { return require(moduleName); } catch (err) { + console.warn(err.toString()); return null; } }; diff --git a/lib/record-serialization.js b/lib/record-serialization.js index 3bc2133..37ebffc 100644 --- a/lib/record-serialization.js +++ b/lib/record-serialization.js @@ -23,9 +23,9 @@ if (jstpNative) { } } else { console.warn( - 'JSTP native addon is not built. ' + + 'JSTP native addon is not built or is not functional. ' + 'Run `npm install` in order to build it, otherwise you will get ' + - 'poor server performance under load.' + 'poor performance.' ); module.exports = require('./record-serialization-fallback'); }