修复错误信息展示

This commit is contained in:
whyour committed 2023-08-06 20:56:59 +08:00
1 parent f947866c32
commit a9b9c4d7ad
6 files changed
+34 -31

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ const check = async (
`tail -n 300 ~/.pm2/logs/schedule-error.log`,
);
return callback(
new Error(`${scheduleErrLog || ''}\n${panelErrLog || ''}\n${res}`),
new Error(`${scheduleErrLog || ''}\n${panelErrLog || ''}\n${res}`.trim()),
);
default: