更新 windshaft-errors.js

This commit is contained in:
钟进 2020-07-11 04:31:52 +00:00
parent fe6a6d0a25
commit e1ead0a3a9

View File

@ -5,21 +5,21 @@ module.exports = {
}, },
'invalid-dataset': { 'invalid-dataset': {
messageRegex: /relation (.+) does not exist/, messageRegex: /relation (.+) does not exist/,
friendlyMessage: 'Invalid dataset name used. Dataset $0 does not exist.' friendlyMessage: '无效的数据表名. $0 不存在.'
}, },
'column-does-not-exist': { 'column-does-not-exist': {
messageRegex: /column (.+) does not exist/, messageRegex: /column (.+) does not exist/,
friendlyMessage: 'Invalid column name. Column $0 does not exist.' friendlyMessage: '无效的列名称. $0 不存在.'
}, },
'analysis-requires-authentication': { 'analysis-requires-authentication': {
messageRegex: /^Analysis requires authentication with API key/ messageRegex: /^需要 API key 认证/
} }
}, },
generic: { generic: {
}, },
limit: { limit: {
'over-platform-limits': { 'over-platform-limits': {
messageRegex: /^You are over platform's limits/ messageRegex: /^超过了平台许可/
}, },
'generic-limit-error': { 'generic-limit-error': {
messageRegex: /.*/, messageRegex: /.*/,
@ -29,13 +29,13 @@ module.exports = {
tile: { tile: {
'generic-tile-error': { 'generic-tile-error': {
messageRegex: /.*/, messageRegex: /.*/,
friendlyMessage: 'Some tiles might not be rendering correctly.' friendlyMessage: '某些地图瓦片可能无法正确渲染.'
} }
}, },
layer: { layer: {
'column-does-not-exist': { 'column-does-not-exist': {
messageRegex: /column (.+) does not exist/, messageRegex: /column (.+) does not exist/,
friendlyMessage: 'Invalid column name. Column $0 does not exist.' friendlyMessage: '无效的列名称. $0 不存在.'
}, },
'unrecognized-rule': { 'unrecognized-rule': {
messageRegex: /Unrecognized rule: (.+)/, messageRegex: /Unrecognized rule: (.+)/,
@ -47,7 +47,7 @@ module.exports = {
}, },
dataview: { dataview: {
'formula-does-not-support-operation': { 'formula-does-not-support-operation': {
messageRegex: /Formula does not support (.+) operation/ messageRegex: /计算不支持 (.+) 操作/
}, },
'column-does-not-exist': { 'column-does-not-exist': {
messageRegex: /column (.+) does not exist/ messageRegex: /column (.+) does not exist/