All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jimin Kim <dayo05 at daum.net>
To: iwd at lists.01.org
Subject: Re: [PATCH] Improve d-bus error message on iwctl
Date: Wed, 13 Apr 2022 18:34:06 +0900	[thread overview]
Message-ID: <4f3b52f9-4a22-87d5-b20e-5a83ff6c8019@daum.net> (raw)
In-Reply-To: e16eb469e954aa1372f16ea8c40abb8f8114477f.camel@gmail.com

[-- Attachment #1: Type: text/plain, Size: 2021 bytes --]


Hi,

On 4/2/22 01:41, James Prestwood wrote:
> Hi,
>
>>>
>> Ok. Then how about changing the message to "Check yourself exists on 
>> netdev usergroup". I know this error is able to happen with other 
>> reason. But this error can showed by newbie or users who is not 
>> friendly with linux. And also, d-bus error message is not friendly 
>> for normal users. So Adding additional information on error messageis 
>> need.
>>
>
> Yes something like "check that user is in the netdev group" would be 
> better. We'll have to see what others think. Whether we take this 
> option or just choose to add something to the wiki (and I'll go ahead 
> and do this anyways).

  I've thought about that and d-bus error message is not user-friendly 
and this error can showed with normal using and figured out this caused 
by broken change commit. And also if error is not showed by this reason, 
this will be important issue. Thats why I didn't remove previous dbus 
error message.

  Wiki is good place to locate information. But many users don't know 
iwd wiki exists because this program has pre-installed to many linux 
distros. So I think show this short information is required.

> I've also CC'd the list back in, make sure you reply all so others can 
> see the coversation.
>
>>
>> Jimin Kim.
>>
>>
>
This is the new patch.

Jimin Kim.


---
  client/dbus-proxy.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c
index 0373a3df..8cad3ece 100644
--- a/client/dbus-proxy.c
+++ b/client/dbus-proxy.c
@@ -722,6 +722,7 @@ static void get_managed_objects_callback(struct 
l_dbus_message *message,
      if (dbus_message_has_error(message)) {
          display_error("Failed to retrieve IWD dbus objects, "
                              "quitting...\n");
+        display("Check yourself exists on netdev usergroup.\n");

          goto error;
      }
-- 
2.35.1



[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 4155 bytes --]

             reply	other threads:[~2022-04-13  9:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-13  9:34 Jimin Kim [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-01 16:41 [PATCH] Improve d-bus error message on iwctl James Prestwood
2022-03-31 15:56 James Prestwood
2022-03-31  8:10 Dayo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f3b52f9-4a22-87d5-b20e-5a83ff6c8019@daum.net \
    --to=unknown@example.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.