MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / statusAfterUpdateError

Function statusAfterUpdateError

apps/desktop/src/main/updater-state.ts:97–103  ·  view source on GitHub ↗
(
  status: DesktopUpdateStatus,
  message: string,
)

Source from the content-addressed store, hash-verified

95// already offered "Restart to update". Dropping that error left the card
96// unchanged and the click looked like a no-op.
97export const statusAfterUpdateError = (
98 status: DesktopUpdateStatus,
99 message: string,
100): DesktopUpdateStatus => {
101 if (status.state === "idle") return status;
102 return { state: "error", version: status.version, message };
103};
104
105export const planFatalAutoInstallOnQuit = (input: {
106 readonly packaged: boolean;

Callers 3

setupAutoUpdaterFunction · 0.90
runUpdateCheckFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected