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

Function statusAfterUpdateError

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

Source from the content-addressed store, hash-verified

90};
91
92export const statusAfterUpdateError = (
93 status: DesktopUpdateStatus,
94 message: string,
95): DesktopUpdateStatus => {
96 if (status.state === "available" || status.state === "downloading" || status.state === "error") {
97 return { state: "error", version: status.version, message };
98 }
99 return status;
100};
101
102export const planFatalAutoInstallOnQuit = (input: {
103 readonly packaged: boolean;

Callers 3

setupAutoUpdaterFunction · 0.90
runUpdateCheckFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected