Error 계열 예외도 catch하여 프로세스 정상 종료 처리

on Exception → catch 변경으로 TypeError 등 Error 계열도
동일한 핸들러에서 처리하고 exit(10) 호출되도록 수정.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
toki 2026-03-03 15:44:28 +09:00
parent 140ec88f6a
commit 90053c265f

View file

@ -119,9 +119,9 @@ class Application {
//start build
await pipeline.execute();
} on Exception catch (e, stacktace) {
} catch (e, stacktrace) {
await CLI.printString(e.toString(), color: Color.redStrong);
await CLI.printString(stacktace.toString(), color: Color.yellowStrong);
await CLI.printString(stacktrace.toString(), color: Color.yellowStrong);
await printBuildStep('Build Failed', Color.redStrong);
exit(10);
}