Process terminated with non-zero code: 1
Fix Plan: Process terminated with non-zero code: 1
Changes#
cupixworks: applications/agents/packages/cupix-capture-3d-reconstruction-agent/src/three-d-reconstruction-service.ts#
- What: catch 블록의
JSON.stringify(error)두 곳을error instanceof Error ? error.message : JSON.stringify(error)로 변경 - Why:
Error객체는message,stack이 non-enumerable이므로JSON.stringify()가{}를 반환함. 에러 원인 정보가 완전히 손실되어 densemapper 실패 디버깅이 불가능해짐 - Lines: 322, 324 (catch 블록 내 logger.error 및 throw 구문)
Acceptance Criteria#
-
three-d-reconstruction-service.ts에서JSON.stringify(error)패턴이 0건 - Error 객체 전달 시
error.message가 로그 및 예외 메시지에 포함됨 - 기존 동작 유지: Error가 아닌 객체는 여전히
JSON.stringify()로 직렬화
Tests#
- 기존 테스트:
cd applications/agents && pnpm exec nx run cupix-capture-3d-reconstruction-agent -t test - 신규 테스트: 없음 (패턴 치환만, 로직 변경 없음)