mirror of
https://github.com/JuLi0n21/homepage.git
synced 2026-04-20 07:40:06 +00:00
add fail save for failed img fetching at build time
This commit is contained in:
@@ -19,7 +19,11 @@ if (response.ok) {
|
||||
const middle = Math.round(files.length / 2);
|
||||
shuffeld = files.slice(0,middle);
|
||||
images = files.slice(middle);
|
||||
} else {
|
||||
console.error("FAILED TO FETCH");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
|
||||
Reference in New Issue
Block a user