forked from rosa/hakurei
cmd/hakurei/print: handle nil config
There is nothing to print in this case, and such a nil check is missing. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -59,6 +59,7 @@ func TestPrintShowInstance(t *testing.T) {
|
||||
want string
|
||||
valid bool
|
||||
}{
|
||||
{"nil", nil, nil, false, false, "Error: invalid configuration!\n\n", false},
|
||||
{"config", nil, hst.Template(), false, false, `App
|
||||
Identity: 9 (org.chromium.Chromium)
|
||||
Enablements: wayland, dbus, pulseaudio
|
||||
|
||||
Reference in New Issue
Block a user