add log
This commit is contained in:
parent
85a49c8657
commit
4b2bf59a60
|
@ -196,7 +196,11 @@ export async function uploadFile(
|
||||||
body.append('name', filename);
|
body.append('name', filename);
|
||||||
|
|
||||||
return await fetch(`https://${host}/api/drive/files/create`, { method: 'POST', body })
|
return await fetch(`https://${host}/api/drive/files/create`, { method: 'POST', body })
|
||||||
.then(async res => await res.json());
|
.then(async res => await res.json())
|
||||||
|
.catch(err => {
|
||||||
|
console.error('-- error :', JSON.stringify(err));
|
||||||
|
throw err;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function addCustomEmoji(
|
export async function addCustomEmoji(
|
||||||
|
|
|
@ -122,7 +122,10 @@ export class APIClient {
|
||||||
...body.error,
|
...body.error,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}).catch(reject);
|
}).catch(err => {
|
||||||
|
console.error('-- error :', JSON.stringify(err));
|
||||||
|
reject(err);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue