modified: index.js

This commit is contained in:
yeyang
2023-01-07 19:10:04 +08:00
parent d587e71f71
commit 15c18fe2cc

View File

@@ -16,9 +16,9 @@ try {
} catch (error) {
if (error.stack.includes('Cannot find package')) {
logger.warn('--------椰奶依赖缺失--------')
logger.warn("yenai-plugin 没有检测到systeminformation依赖将无法使用椰奶状态")
logger.warn(`yenai-plugin 缺少依赖将无法使用 ${logger.yellow('椰奶状态')}`)
logger.warn(`如需使用请运行:${logger.red('pnpm add systeminformation -w')}`)
logger.warn('---------------------')
logger.warn('---------------------------')
} else {
logger.error(`椰奶载入依赖错误:${logger.red('systeminformation')}`)
logger.error(decodeURI(error.stack))