Re: [systemd-devel] sdbus errors and their underlaying int value: unique?

2021-03-03 Thread Simon McVittie
On Wed, 03 Mar 2021 at 13:51:38 +0100, Lennart Poettering wrote: > On Di, 02.03.21 10:40, Carlo Wood (ca...@alinoe.com) wrote: > > In C++ we have std::error_code which stores both a (unique) domain > > and an int that is defined within that domain. The integer values > > do not have to be globally

Re: [systemd-devel] Antw: [EXT] D-bus connection Unknown error

2021-03-03 Thread Carlo Wood
On Wed, 03 Mar 2021 07:59:03 +0100 "Ulrich Windl" wrote: > > Failed to get D-bus connection: Unknown error -1 > > I have no idea, but I think "unknown error" is bad programming style; > it's like "something went wrong; go and figure...". I can't agree more (I always go out of my way to have ex

[systemd-devel] Antw: Re: Antw: [EXT] D-bus connection Unknown error

2021-03-03 Thread Ulrich Windl
>>> Reindl Harald schrieb am 03.03.2021 um 12:39 in Nachricht <35c55fcf-6f7c-0566-ef55-5d7b2fb50...@thelounge.net>: > > Am 03.03.21 um 07:59 schrieb Ulrich Windl: > Shiju Email <994...@gmail.com> schrieb am 02.03.2021 um 22:27 in Nachricht >> : >>> Hi, I am getting an error when any systemct

Re: [systemd-devel] sdbus errors and their underlaying int value: unique?

2021-03-03 Thread Lennart Poettering
On Di, 02.03.21 10:40, Carlo Wood (ca...@alinoe.com) wrote: > Hello, > > thank you for you previous help; I made a lot of progress. > > I'm not writing my own C++ wrappers around sbus. > > I have the following question: > > A sd_bus_error has a name (and a message). The name is usually something >

Re: [systemd-devel] D-bus connection Unknown error

2021-03-03 Thread Lennart Poettering
On Mi, 03.03.21 10:27, Shiju Email (994...@gmail.com) wrote: > Hi, I am getting an error when any systemctl commands are issued. > > Failed to get D-bus connection: Unknown error -1 We do not generate such an error string in our entire codebase. This doesn't look like a systemd issue, but more of

Re: [systemd-devel] Antw: [EXT] D-bus connection Unknown error

2021-03-03 Thread Reindl Harald
Am 03.03.21 um 07:59 schrieb Ulrich Windl: Shiju Email <994...@gmail.com> schrieb am 02.03.2021 um 22:27 in Nachricht : Hi, I am getting an error when any systemctl commands are issued. Failed to get D-bus connection: Unknown error -1 I have no idea, but I think "unknown error" is bad pro