Skip to content

Commit

Permalink
fix(client): catch unhandledException
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS authored and mmarchini committed Sep 2, 2020
1 parent 62dd31c commit f683b19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ filesystem instead.

All commands require at least one option: `-p <pid>` or `-h <host>`/`-P <port>`.

- `-p`: will start the inspector protocol on the remote process `<pid>` by sending a `SIGUSR2` signal to the process.
- `-p`: will start the inspector protocol on the remote process `<pid>` by sending a `SIGUSR1` signal to the process.
- `-h/-P`: will attach to the inspector protocol on this remote or local host.
Important, the app should already start debugger listening on the expected port.

Expand Down
2 changes: 1 addition & 1 deletion lib/internal/inspector-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getWebSocketPath(host, port) {

resp.on('end', () => resolve(JSON.parse(data)[0].webSocketDebuggerUrl));
resp.on('error', (e) => reject(e));
});
}).on('error', reject);
});
}

Expand Down

0 comments on commit f683b19

Please sign in to comment.