(err error, ret int)
| 58 | } |
| 59 | |
| 60 | func fatalWithCode(err error, ret int) { |
| 61 | // Make sure the error is written to the logger. |
| 62 | logrus.Error(err) |
| 63 | if !logrusToStderr() { |
| 64 | fmt.Fprintln(os.Stderr, err) |
| 65 | } |
| 66 | |
| 67 | os.Exit(ret) |
| 68 | } |
| 69 | |
| 70 | // setupSpec performs initial setup based on the cli.Context for the container |
| 71 | func setupSpec(context *cli.Context) (*specs.Spec, error) { |
no test coverage detected
searching dependent graphs…