docs: improve config parse error message

This commit is contained in:
impart我的impart呢 2024-03-09 00:38:57 +08:00
parent a06cda8154
commit fab7c2c6f9
No known key found for this signature in database
GPG Key ID: 68ED75B1D060D166

View File

@ -53,7 +53,7 @@ const task = (async () => {
{ code: 2157 }, { code: 2157 },
) )
l.error(new Error(`解析配置时出现问题。${validateResult}`), { l.error(new Error(`解析配置时出现问题。\n${validateResult}\n\n\t配置文件位置${configPath}\n\t请自行检查。`), {
code: 2154, code: 2154,
throw: true, throw: true,
}) })