mirror of https://github.com/OpenVidu/openvidu.git
openvidu-node-client: avoid [object object] error on OpenVidu#fetch
parent
8ad13167cd
commit
77bad4e14f
|
@ -480,7 +480,7 @@ export class OpenVidu {
|
||||||
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
||||||
// http.ClientRequest in node.js
|
// http.ClientRequest in node.js
|
||||||
console.error(error.request);
|
console.error(error.request);
|
||||||
reject(new Error(error.request));
|
reject(error);
|
||||||
} else {
|
} else {
|
||||||
// Something happened in setting up the request that triggered an Error
|
// Something happened in setting up the request that triggered an Error
|
||||||
console.error('Error', error.message);
|
console.error('Error', error.message);
|
||||||
|
|
Loading…
Reference in New Issue