This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new 2b3bdde4a [#2110] fix(ui): refine network error msg (#4387)
2b3bdde4a is described below

commit 2b3bdde4ab738669e34fb14223b2e19ea81a61d6
Author: Qian Xia <[email protected]>
AuthorDate: Tue Aug 6 19:24:34 2024 +0800

    [#2110] fix(ui): refine network error msg (#4387)
    
    ### What changes were proposed in this pull request?
    Refine network error msg
    <img width="1682" alt="image"
    
src="https://github.com/user-attachments/assets/704212f3-ddf5-4c53-876a-73ce1164ef31";>
    
    ### Why are the changes needed?
    
    Fix: #2110
    
    ### Does this PR introduce _any_ user-facing change?
    N/A
    
    ### How was this patch tested?
    manually operated
---
 web/src/components/StyledToast.js | 2 +-
 web/src/lib/utils/axios/index.js  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/src/components/StyledToast.js 
b/web/src/components/StyledToast.js
index 0fd86632d..2ff08a175 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 5c49b32f0..5bd2350bb 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) {

Reply via email to