Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
fix: print 'ok' after connection
Browse files Browse the repository at this point in the history
This change makes inspect more compatible with the old debugger. There
are some Node.js core test-cases that are expecting the 'ok' to show up
here.
  • Loading branch information
ofrobots committed Feb 15, 2017
1 parent 9708159 commit 2a47125
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/_inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ class NodeInspector {
return this.client.connect()
.then(() => {
debuglog('connection established');
this.stdout.write(' ok');
}, (error) => {
debuglog('connect failed', error);
// If it's failed to connect 10 times then print failed message
Expand Down

0 comments on commit 2a47125

Please sign in to comment.