dbus: assert fmt.Stringer instead of helper.Args on argument seal
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
b722adc4dd
commit
be83ad838c
|
@ -2,6 +2,7 @@ package dbus
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
@ -43,7 +44,7 @@ func (p *Proxy) String() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
if p.seal != nil {
|
if p.seal != nil {
|
||||||
return p.seal.(helper.Args).String()
|
return p.seal.(fmt.Stringer).String()
|
||||||
}
|
}
|
||||||
|
|
||||||
return "(unsealed dbus proxy)"
|
return "(unsealed dbus proxy)"
|
||||||
|
|
Loading…
Reference in New Issue