mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
fix error handling
This commit is contained in:
parent
ffaca84aa5
commit
89c2cd2108
1 changed files with 6 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { showNotification } from "@api/Notifications";
|
||||
import { DataStore } from "@api/index";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { closeModal, ModalContent, ModalHeader, ModalRoot, openModalLazy } from "@utils/modal";
|
||||
|
@ -164,5 +165,9 @@ function makeContextItem(a: folderProp) {
|
|||
);
|
||||
}
|
||||
function handleUpdateError(e: any) {
|
||||
throw e;
|
||||
showNotification({
|
||||
title: "CustomFolderIcons: Error",
|
||||
body: "An error has occurred. Check the console for more info."
|
||||
});
|
||||
console.error(e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue