File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ async fn main() -> Result<()> {
4949 if e. to_string ( )
5050 . contains ( "org.freedesktop.DBus.Error.AccessDenied" )
5151 {
52- eprintln ! ( "Permission Denied" ) ;
52+ eprintln ! ( "Insufficient Permissions." ) ;
53+ eprintln ! (
54+ "You do not have the required permissions. Ensure you are part of the appropriate user group or use sudo."
55+ )
5356 } else {
5457 eprintln ! ( "{}" , e) ;
5558 }
@@ -95,7 +98,10 @@ async fn main() -> Result<()> {
9598 if e. to_string ( )
9699 . contains ( "org.freedesktop.DBus.Error.AccessDenied" )
97100 {
98- exit_error_message = Some ( anyhow ! ( "Permission Denied" ) ) ;
101+ exit_error_message = Some ( anyhow ! ( "
102+ Insufficient Permissions.
103+ You do not have the required permissions. Ensure you are part of the appropriate user group or use sudo.
104+ " ) ) ;
99105 } else {
100106 exit_error_message = Some ( e) ;
101107 }
You can’t perform that action at this time.
0 commit comments