fetch module, give more detailed errors
This commit is contained in:
parent
c74e6fcb18
commit
282fc1ac1a
1 changed files with 2 additions and 0 deletions
|
|
@ -79,6 +79,8 @@ export class Req {
|
|||
const docTitle = body.match(/<title>(.*)<\/title>/);
|
||||
if(body && docTitle){
|
||||
console.error(docTitle[1]);
|
||||
} else {
|
||||
console.error(body);
|
||||
}
|
||||
}
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue