mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-24 05:47:30 +00:00
fix(web): preserve settings error cause
This commit is contained in:
parent
d895df1a92
commit
1ea6e2dde0
1 changed files with 3 additions and 1 deletions
|
|
@ -54,7 +54,9 @@ export function useUpdateOrgSettings() {
|
|||
body: settings,
|
||||
})
|
||||
if (response.error) {
|
||||
throw new Error(response.error.message || "Failed to save settings")
|
||||
throw new Error("Failed to save settings", {
|
||||
cause: response.error.message,
|
||||
})
|
||||
}
|
||||
return response.data
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue