(errok bool, err error)
| 142 | } |
| 143 | |
| 144 | func (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 |
no test coverage detected