refactor: output errors on devtools (#928)
This commit is contained in:
parent
50c54144e6
commit
4e0777d723
9 changed files with 34 additions and 16 deletions
|
@ -16,7 +16,9 @@ async function download(url: string, fileName: string) {
|
|||
const image = await $fetch(url, { responseType: 'arrayBuffer' })
|
||||
await fs.writeFile(fileName, Buffer.from(image))
|
||||
}
|
||||
catch {}
|
||||
catch (err) {
|
||||
console.error(err)
|
||||
}
|
||||
}
|
||||
|
||||
async function fetchAvatars() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue