diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-07 13:20:56 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-07 13:20:56 +0900 |
| commit | a48386bd5605f989593a0f53847dc49861d10154 (patch) | |
| tree | 85e9487778e86204ed10a5189d40b94ce827a774 /internal/system | |
| parent | 2e521914042ec427cae3c429b448c4bc3eed61de (diff) | |
system/dbus: dump messages on early fault
In the current app implementation this gets dumped in the wait method after resuming output. Wait is never called in an early fault condition, so any error messages get lost.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/system')
| -rw-r--r-- | internal/system/dbus.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/system/dbus.go b/internal/system/dbus.go index 859fa029..42208267 100644 --- a/internal/system/dbus.go +++ b/internal/system/dbus.go @@ -127,6 +127,10 @@ func (d *DBus) apply(_ *I) error { // ready is not nil if the proxy process faulted if err := <-ready; err != nil { + // dump message buffer as caller does not dump this + // in an early fault condition + d.out.Dump() + // note that err here is either an I/O error or a predetermined unexpected behaviour error return fmsg.WrapErrorSuffix(err, "message bus proxy fault after start:") |
