This commit is contained in:
waleed
2026-01-16 13:07:00 -08:00
parent f9ee8059d1
commit 95c2792ffd
2 changed files with 8 additions and 1 deletions

View File

@@ -658,7 +658,7 @@ export function DeployModal({
onClick={handleMcpToolFormSubmit}
disabled={mcpToolSubmitting || !mcpToolCanSave}
>
{mcpToolSubmitting ? 'Saving...' : 'Save Tool Schema'}
{mcpToolSubmitting ? 'Saving...' : 'Save Tool'}
</Button>
</div>
</ModalFooter>

View File

@@ -189,6 +189,10 @@ export function useCreateForm() {
const data = await response.json()
if (!response.ok) {
// Handle specific error cases
if (data.error === 'Identifier already in use') {
throw new Error('This identifier is already in use')
}
throw new Error(data.error || 'Failed to create form')
}
@@ -233,6 +237,9 @@ export function useUpdateForm() {
const result = await response.json()
if (!response.ok) {
if (result.error === 'Identifier already in use') {
throw new Error('This identifier is already in use')
}
throw new Error(result.error || 'Failed to update form')
}