fix(chromium): Add error message to asset when there is one. (#15892)
[196] -- Provide the assert function with with either the error message in the provided object or undefined if there isn't one
This commit is contained in:
parent
829a1b8444
commit
6f47f0f22a
|
|
@ -193,7 +193,7 @@ export class CRSession extends EventEmitter {
|
|||
} else if (object.id && object.error?.code === -32001) {
|
||||
// Message to a closed session, just ignore it.
|
||||
} else {
|
||||
assert(!object.id);
|
||||
assert(!object.id, object?.error?.message || undefined);
|
||||
Promise.resolve().then(() => {
|
||||
if (this._eventListener)
|
||||
this._eventListener(object.method!, object.params);
|
||||
|
|
|
|||
Loading…
Reference in a new issue