Add message ID to timeout error to help diagnose issues like bug #2

This commit is contained in:
Casper Warden
2018-10-07 17:11:38 +01:00
parent 960f024ea4
commit 8083b78cc1
4 changed files with 4 additions and 4 deletions

View File

@@ -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);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -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));
}
};