From 6a7b4726a73e83f49e9340ffee4e57ef9b0fe1e9 Mon Sep 17 00:00:00 2001 From: Abdullah Alfaraj Date: Tue, 28 Feb 2023 05:03:40 +0300 Subject: [PATCH] improve readability of error message --- utility/notification.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/utility/notification.js b/utility/notification.js index b91e18d..c2ef5b5 100644 --- a/utility/notification.js +++ b/utility/notification.js @@ -7,7 +7,7 @@ class Notification { const r1 = await dialog_box.prompt( 'Automatic1111 is Offline', "make sure Automatic1111 is running in the background, or select the 'native horde' option from the horde tab", - ['Cancel', 'How To', 'OK'] + ['Cancel', 'OK'] ) try { @@ -16,8 +16,6 @@ class Notification { console.log('cancel') } else if (r1 === 'OK') { console.log('ok') - } else if (r1 === 'How To') { - console.log('How to') } } catch (e) { console.warn(e) @@ -25,9 +23,9 @@ class Notification { } static async webuiAPIMissing() { const r1 = await dialog_box.prompt( - "Automatic1111 is running, but you've forgotten to add --api flag, so the plugin can communicate with it", - '', - ['Cancel', 'How To', 'OK'] + "The Plugin can't communicate with Automatic1111", + 'Automatic1111 is running, but you forgot to add --api flag to the webui command flags', + ['Cancel', 'OK'] ) try { @@ -36,8 +34,6 @@ class Notification { console.log('cancel') } else if (r1 === 'OK') { console.log('ok') - } else if (r1 === 'How To') { - console.log('How to') } } catch (e) { console.warn(e)