MCPcopy Create free account
hub / github.com/cogentcore/core / HandleArgErr

Method HandleArgErr

shell/exec.go:144–154  ·  view source on GitHub ↗
(errok bool, err error)

Source from the content-addressed store, hash-verified

142}
143
144func (sh *Shell) HandleArgErr(errok bool, err error) error {
145 if err == nil {
146 return err
147 }
148 if errok {
149 sh.Config.StdIO.ErrPrintln(err.Error())
150 } else {
151 sh.AddError(err)
152 }
153 return err
154}
155
156// ExecArgs processes the args to given exec command,
157// handling all of the input / output redirection and

Callers 2

ExecArgsMethod · 0.95
OutToFileMethod · 0.95

Calls 3

AddErrorMethod · 0.95
ErrPrintlnMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected