MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / handlerErr

Function handlerErr

core/utils/controller/manager/common.go:12–20  ·  view source on GitHub ↗
(out string, err error)

Source from the content-addressed store, hash-verified

10)
11
12func handlerErr(out string, err error) error {
13 if err != nil {
14 if out != "" {
15 return errors.New(out)
16 }
17 return err
18 }
19 return nil
20}
21
22func run(client *ssh.SSHClient, name string, args ...string) (string, error) {
23 if client == nil {

Callers 5

OperateMethod · 0.70
OperateMethod · 0.70
OperateMethod · 0.70
OperateMethod · 0.70
ReloadMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected