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
|
||||
// http.ClientRequest in node.js
|
||||
console.error(error.request);
|
||||
reject(new Error(error.request));
|
||||
reject(error);
|
||||
} else {
|
||||
// Something happened in setting up the request that triggered an Error
|
||||
console.error('Error', error.message);
|
||||
|
|
Loading…
Reference in New Issue