From 756ed645554cee80d09097c0746f21e75d03c4dd Mon Sep 17 00:00:00 2001
From: Tio TROM <tio@trom.tf>
Date: Thu, 6 Oct 2022 15:01:06 +0200
Subject: [PATCH] improved the error messages

---
 layout-switcher | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/layout-switcher b/layout-switcher
index ee67112..154f544 100644
--- a/layout-switcher
+++ b/layout-switcher
@@ -7,7 +7,7 @@ enable-top-bar-integration() {
     # Enable global menus
     pacman -Qq vala-panel-appmenu-registrar ||
         zensu SKIP_AUTOSNAP= pacman -S --noconfirm vala-panel-appmenu-registrar ||
-        { notify-send 'Error' 'failed installing vala-panel-appmenu-registrar !\nmake sure you type the correct password\nEnabling the internet connection might solve the issue'; exit; }
+        { notify-send 'Error' 'Failed installing vala-panel-appmenu-registrar !\nmake sure that you typed the password correctly or that you are not currently installing or updating your system\nEnabling the internet connection might solve the issue'; exit; }
     pacman -Qq vala-panel-appmenu-registrar || exit
 
     # Hide window borders when maximized
@@ -22,7 +22,7 @@ disable-top-bar-integration() {
     # Disable global menus
     ! pacman -Qq vala-panel-appmenu-registrar ||
         zensu SKIP_AUTOSNAP= pacman -R --noconfirm vala-panel-appmenu-registrar ||
-        { notify-send 'Error' 'failed removing vala-panel-appmenu-registrar !\nmake sure you type the correct password'; exit; }
+        { notify-send 'Error' 'Failed installing vala-panel-appmenu-registrar !\nmake sure that you typed the password correctly or that you are not currently installing or updating your system'; exit; }
     pacman -Qq vala-panel-appmenu-registrar && exit
     killall appmenu-registrar