mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 12:27:48 +00:00
fix wiki bug (#7189)
This commit is contained in:
@@ -1399,7 +1399,13 @@ export const Utils = {
|
||||
errorMsg = gettext('Error');
|
||||
}
|
||||
} else {
|
||||
errorMsg = gettext('Please check the network.');
|
||||
if (typeof error === 'object' && error.name) {
|
||||
errorMsg = error.name;
|
||||
} else {
|
||||
errorMsg = gettext('Please check the network.');
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
console.log(error);
|
||||
}
|
||||
return errorMsg;
|
||||
},
|
||||
|
Reference in New Issue
Block a user