fix: Throwing event as error

This commit is contained in:
Tom Moor
2023-04-24 23:35:46 -04:00
parent 6b978fc780
commit b0da3b7cab

View File

@@ -146,8 +146,8 @@ const insertFiles = function (
}
};
newImg.onerror = (error) => {
throw error;
newImg.onerror = (event) => {
throw new Error(`Error loading image: ${event}`);
};
newImg.src = src;