mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 17:40:09 +00:00
Move error handling out of api.ts to workflows.ts (#600)
This commit is contained in:
@@ -541,11 +541,7 @@ class ComfyApi extends EventTarget {
|
||||
const resp = await this.fetchApi(`/userdata/${encodeURIComponent(file)}`, {
|
||||
method: 'DELETE'
|
||||
})
|
||||
if (resp.status !== 204) {
|
||||
throw new Error(
|
||||
`Error removing user data file '${file}': ${resp.status} ${resp.statusText}`
|
||||
)
|
||||
}
|
||||
return resp
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user