Skip to content

Commit d9e435d

Browse files
committed
chore: show error
1 parent a1bc932 commit d9e435d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/downloadImages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ async function download(url, file) {
4242
try {
4343
const image = await fetch(url);
4444
await fs.writeFile(file, image.body);
45-
} catch {
46-
console.error('Failed to save', basename(file));
45+
} catch (e) {
46+
console.error('Failed to save', basename(file), e.message || e);
4747
}
4848
}
4949

0 commit comments

Comments
 (0)