(cmd *cobra.Command, record updateRecord, cause error)
| 332 | } |
| 333 | |
| 334 | func writeUpdateFailure(cmd *cobra.Command, record updateRecord, cause error) error { |
| 335 | if writeErr := writeCommandOutput(cmd, updateBundle(record)); writeErr != nil { |
| 336 | return writeErr |
| 337 | } |
| 338 | if cause == nil { |
| 339 | return errors.New(strings.TrimSpace(record.Message)) |
| 340 | } |
| 341 | return cause |
| 342 | } |
| 343 | |
| 344 | func waitForSettingsRestart( |
| 345 | ctx context.Context, |
no test coverage detected