This commit is contained in:
kidddddddddddddddddddddd
2022-12-07 18:46:36 +08:00
parent 3e26e104bd
commit 6ca62eb2cb
6 changed files with 48 additions and 46 deletions

View File

@@ -159,6 +159,11 @@ type Status struct {
failedPlugin string
}
func (s *Status) WithError(err error) *Status {
s.err = err
return s
}
// Code returns code of the Status.
func (s *Status) Code() Code {
if s == nil {