Add message ID to timeout error to help diagnose issues like bug #2
This commit is contained in:
2
dist/classes/Circuit.js
vendored
2
dist/classes/Circuit.js
vendored
@@ -111,7 +111,7 @@ class Circuit {
|
||||
const timeoutFunc = () => {
|
||||
if (handleObj.subscription !== null) {
|
||||
handleObj.subscription.unsubscribe();
|
||||
reject(new Error('Timeout'));
|
||||
reject(new Error('Timeout waiting for message of type ' + id));
|
||||
}
|
||||
};
|
||||
handleObj.timeout = setTimeout(timeoutFunc, timeout);
|
||||
|
||||
2
dist/classes/Circuit.js.map
vendored
2
dist/classes/Circuit.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/classes/Comms.js.map
vendored
2
dist/classes/Comms.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -188,7 +188,7 @@ export class Circuit
|
||||
if (handleObj.subscription !== null)
|
||||
{
|
||||
handleObj.subscription.unsubscribe();
|
||||
reject(new Error('Timeout'));
|
||||
reject(new Error('Timeout waiting for message of type ' + id));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user