Skip to content

Commit

Permalink
🐛 fix: 优化错误编码
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 25, 2023
1 parent b405f36 commit a9902be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/error.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/* eslint-disable sort-keys-fix/sort-keys-fix */
export const PluginErrorType = {
// ******* 业务错误语义 ******* //
PluginMarketIndexNotFound: 'pluginMarketIndexNotFound', // 插件市场索引解析失败
PluginMarketIndexInvalid: 'pluginMarketIndexInvalid', // 插件市场索引无效
PluginMarketIndexNotFound: 'PluginMarketIndexNotFound', // 插件市场索引解析失败
PluginMarketIndexInvalid: 'PluginMarketIndexInvalid', // 插件市场索引无效

PluginMetaNotFound: 'pluginMetaNotFound', // 没有找到插件元数据
PluginMetaInvalid: 'pluginMetaInvalid', // 插件元数据无效
PluginMetaNotFound: 'PluginMetaNotFound', // 没有找到插件元数据
PluginMetaInvalid: 'PluginMetaInvalid', // 插件元数据无效

PluginManifestNotFound: 'pluginManifestNotFound', // 插件描述文件不存在
PluginManifestInvalid: 'pluginManifestInvalid', // 插件描述文件不存在
PluginManifestNotFound: 'PluginManifestNotFound', // 插件描述文件不存在
PluginManifestInvalid: 'PluginManifestInvalid', // 插件描述文件不存在

// ******* 客户端错误 ******* //
BadRequest: 400,
Expand Down

0 comments on commit a9902be

Please sign in to comment.