Error 계열 예외도 catch하여 프로세스 정상 종료 처리
on Exception → catch 변경으로 TypeError 등 Error 계열도 동일한 핸들러에서 처리하고 exit(10) 호출되도록 수정. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
140ec88f6a
commit
90053c265f
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue