From 47d62df1a205789574bd3c8e06af0fdc07322306 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Wed, 23 Nov 2022 01:18:36 +0100 Subject: added more user friendly error message When JavaScript errors occur outside of the renderer, they'll no longer display a big and confusingly detailed error stack, now they'll simply be shown a toast about the fact that an error happened. The user can then click this to get more details, but still without it being as invasive and obtuse as before. --- src/lang/en.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lang/en.json') diff --git a/src/lang/en.json b/src/lang/en.json index aadcee0..4ba077a 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -136,10 +136,12 @@ "gui.toast.title.duped": "Duplicate folder names!", "gui.toast.title.failed": "Failed to install", "gui.toast.title.malformed": "Incorrect folder structure!", + "gui.toast.title.unknown_error": "Unknown Error!", "gui.toast.desc.installed": "has been installed successfully!", "gui.toast.desc.malformed": "has an incorrect folder structure, if you're the developer, you should fix this.", "gui.toast.desc.failed": "An unknown error occurred while trying to install the mod. This may be the author's fault, and it may also be Viper's fault.", "gui.toast.desc.duped": "has multiple mod folders in it, with the same name, causing duplicate folders, if you're the developer, you should fix this.", + "gui.toast.desc.unknown_error": "An unknown error occurred, click for more details. You may want to take a screenshot of the detailed error when filing a bug report.", "gui.toast.noInternet.title": "No Internet", "gui.toast.noInternet.desc": "Viper may not work properly.", -- cgit v1.2.3