修复错误信息展示

This commit is contained in:
whyour
2023-08-06 20:56:59 +08:00
parent f947866c32
commit a9b9c4d7ad
6 changed files with 34 additions and 31 deletions
+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: