MCPcopy Create free account
hub / github.com/compozy/agh / writeUpdateFailure

Function writeUpdateFailure

internal/cli/update.go:334–342  ·  view source on GitHub ↗
(cmd *cobra.Command, record updateRecord, cause error)

Source from the content-addressed store, hash-verified

332}
333
334func 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
344func waitForSettingsRestart(
345 ctx context.Context,

Callers 5

runUpdateCommandFunction · 0.85
applyAvailableUpdateFunction · 0.85
finishLocalUpdateFunction · 0.85
restartDaemonAfterUpdateFunction · 0.85
failAppliedUpdateFunction · 0.85

Calls 2

writeCommandOutputFunction · 0.85
updateBundleFunction · 0.85

Tested by

no test coverage detected