Fix: Check function error capture

This commit is contained in:
anmengweilai 2024-01-12 18:56:38 +08:00
parent ad6332af5c
commit 12347c774f

View File

@ -54,7 +54,7 @@ export const alasPath = isMacintosh && import.meta.env.PROD ? getAlasABSPath() :
try {
validateConfigFile(join(alasPath, '/config'));
} catch (e) {
logger.error(e.toString());
logger.error(String(e as any));
}
const file = fs.readFileSync(path.join(alasPath, './config/deploy.yaml'), 'utf8');