withHelp decorates the error with a suggestion to use "--help".
(err error, commandName string)
| 316 | |
| 317 | // withHelp decorates the error with a suggestion to use "--help". |
| 318 | func withHelp(err error, commandName string) error { |
| 319 | return fmt.Errorf("docker: %w\n\nRun 'docker %s --help' for more information", err, commandName) |
| 320 | } |
| 321 | |
| 322 | // toStatusError attempts to detect specific error-conditions to assign |
| 323 | // an appropriate exit-code for situations where the problem originates |
no outgoing calls
no test coverage detected
searching dependent graphs…