wangzhigang1999 commented on code in PR #7505:
URL: https://github.com/apache/kyuubi/pull/7505#discussion_r3378243609


##########
kyuubi-server/web-ui/src/utils/use-table.ts:
##########
@@ -56,7 +57,16 @@ export function useTable() {
     loading.value = true
     func(data)
       .then((res: any[]) => (list.value = res || []))
-      .catch(() => (list.value = []))
+      .catch((error: unknown) => {
+        list.value = []
+        ElMessage({
+          message:
+            error instanceof Error && error.message
+              ? error.message
+              : 'Request failed',
+          type: 'error'
+        })
+      })
       .finally(() => {

Review Comment:
   fixed and rollback



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to