2
2
mirror of https://git.coolaj86.com/coolaj86/telebit.js.git synced 2025-03-14 12:10:37 +00:00

show name of command which times out

This commit is contained in:
AJ ONeal 2018-06-07 00:45:42 -06:00
parent 274c527768
commit 536afb2ad5

View File

@ -179,7 +179,7 @@ function _connect(state) {
wsHandlers.sendMessage(Packer.pack(null, cmd, 'control'));
setTimeout(function () {
if (pendingCommands[id]) {
console.warn('command', id, 'timed out');
console.warn('command', name, id, 'timed out');
pendingCommands[id]({
message: 'response not received in time'
, code: 'E_TIMEOUT'