mirror of
https://github.com/outline/outline.git
synced 2026-12-02 09:42:07 +03:00
fix: Throwing event as error
This commit is contained in:
1 parent
6b978fc780
commit
b0da3b7cab
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user