MCPcopy Index your code
hub / github.com/anomalyco/opencode / setLoadError

Function setLoadError

packages/app/src/context/file.tsx:151–165  ·  view source on GitHub ↗
(file: string, message: string)

Source from the content-addressed store, hash-verified

149 }
150
151 const setLoadError = (file: string, message: string) => {
152 setStore(
153 "file",
154 file,
155 produce((draft) => {
156 draft.loading = false
157 draft.error = message
158 }),
159 )
160 showToast({
161 variant: "error",
162 title: language.t("toast.file.loadFailed.title"),
163 description: message,
164 })
165 }
166
167 const load = (input: string, options?: { force?: boolean }) => {
168 const file = path.normalize(input)

Callers 4

DialogMoveSessionFunction · 0.85
DialogConsoleOrgFunction · 0.85
DialogSkillFunction · 0.85
loadFunction · 0.85

Calls 2

showToastFunction · 0.90
setStoreFunction · 0.85

Tested by

no test coverage detected