fix: some promise error Handlings

This commit is contained in:
Ramesh Mane
2026-01-17 10:29:17 +00:00
parent 581103cc21
commit fa95bc29c7
4 changed files with 41 additions and 26 deletions

View File

@@ -184,7 +184,11 @@ const onOpenTable = async () => {
if (isEditing.value || isStopped.value) return
if (isMac() ? metaKey.value : control.value) {
await _openTable(table.value, true)
try {
await _openTable(table.value, true)
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))
}
return
}
@@ -195,7 +199,7 @@ const onOpenTable = async () => {
if (isMobileMode.value) {
isLeftSidebarOpen.value = false
}
} catch (e) {
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))
} finally {
isLoading.value = false