mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-26 02:10:58 +00:00
feat(shell): config: add migrate warn
This commit is contained in:
parent
dc7f619b48
commit
93aa0b9bcb
@ -43,6 +43,16 @@ const task = (async () => {
|
|||||||
|
|
||||||
const validateResult = await validate('ChronocatConfig')(parsedConfig)
|
const validateResult = await validate('ChronocatConfig')(parsedConfig)
|
||||||
if (validateResult) {
|
if (validateResult) {
|
||||||
|
if (
|
||||||
|
validateResult.includes(
|
||||||
|
'#/properties/servers/items/discriminator:标签 "type"',
|
||||||
|
)
|
||||||
|
)
|
||||||
|
l.warn(
|
||||||
|
'可能存在不支持的服务器类型。是否未进行从 Chronocat v0.1.x 的迁移?',
|
||||||
|
{ code: 2157 },
|
||||||
|
)
|
||||||
|
|
||||||
l.error(new Error(`解析配置时出现问题。${validateResult}`), {
|
l.error(new Error(`解析配置时出现问题。${validateResult}`), {
|
||||||
code: 2154,
|
code: 2154,
|
||||||
throw: true,
|
throw: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user