mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
optimized error message
This commit is contained in:
@@ -676,6 +676,7 @@ export default {
|
||||
'Are you sure to stop this task?': '确认停止这个任务?',
|
||||
'Enabled successfully': '成功启用',
|
||||
'Disabled successfully': '成功禁用',
|
||||
'Request Error': '请求错误',
|
||||
|
||||
// 其他
|
||||
'Star crawlab-team/crawlab on GitHub': '在 GitHub 上为 Crawlab 加星吧'
|
||||
|
||||
@@ -33,7 +33,7 @@ const errorHandler = (error) => {
|
||||
const errorText = response.data.error
|
||||
const { status } = response
|
||||
Message({
|
||||
message: `请求错误 ${status}: ${response.request.responseURL}. ${errorText}`,
|
||||
message: i18n.t('Request Error') + ` ${status}: ${response.request.responseURL}. ${errorText}`,
|
||||
type: 'error',
|
||||
duration: 5 * 1000
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user