THRIFT-4172: fix node.js tutorial when connection fails
Client: node.js
Patch: Eden Hochbaum <eden.hochbaum@gmail.com>
This closes #1037
This closes #1244
diff --git a/tutorial/nodejs/NodeClient.js b/tutorial/nodejs/NodeClient.js
index 130ba57..b4886e8 100644
--- a/tutorial/nodejs/NodeClient.js
+++ b/tutorial/nodejs/NodeClient.js
@@ -20,7 +20,7 @@
var thrift = require('thrift');
var Calculator = require('./gen-nodejs/Calculator');
var ttypes = require('./gen-nodejs/tutorial_types');
-
+const assert = require('assert');
var transport = thrift.TBufferedTransport;
var protocol = thrift.TBinaryProtocol;