Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#2110] fix(ui): refine network error msg (#4387)

Qian Xia2b3bdde4ab73
diff --git a/web/src/components/StyledToast.js b/web/src/components/StyledToast.js
index 0fd86632d6..2ff08a175e 100644
--- a/web/src/components/StyledToast.js
+++ b/web/src/components/StyledToast.js
@@ -43,7 +43,7 @@ export default function StyledToast() {
{({ icon, message }) => (
<>
{icon}
- <div className='twc-flex twc-w-full twc-break-all [&>div]:twc-justify-start'>{message}</div>
+ <div className='twc-flex twc-w-full twc-break-normal [&>div]:twc-justify-start'>{message}</div>
<div className='twc-flex twc-h-full'>
{t.type !== 'loading' && (
<button
diff --git a/web/src/lib/utils/axios/index.js b/web/src/lib/utils/axios/index.js
index 5c49b32f01..5bd2350bbc 100644
--- a/web/src/lib/utils/axios/index.js
+++ b/web/src/lib/utils/axios/index.js
@@ -228,7 +228,7 @@ const transform = {
errMessage = 'The interface request timed out, please refresh the page and try again!'
}
if (err?.includes('Network Error')) {
- errMessage = 'Please check if your network connection is normal! The network is abnormal'
+ errMessage = 'Unable to connect to Gravitino. Please check if Gravitino is running.'
}
if (errMessage) {