mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-22 04:05:48 +00:00
Compare commits
1 Commits
fix/cli-va
...
shadcn/deb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93cb808f3a |
@@ -34,6 +34,8 @@ export async function editInV0({
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
console.log(response.status, response.statusText)
|
||||||
|
|
||||||
if (response.status === 403) {
|
if (response.status === 403) {
|
||||||
throw new Error("Unauthorized")
|
throw new Error("Unauthorized")
|
||||||
}
|
}
|
||||||
@@ -43,6 +45,8 @@ export async function editInV0({
|
|||||||
|
|
||||||
return await response.json()
|
return await response.json()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.log(error)
|
||||||
|
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
return { error: error.message }
|
return { error: error.message }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user