Commit 44db03a
fix(core): wrap CNW normalize args function in error handler (#34905)
This is a follow-up to #34902, where we
throw `CnwError` for known problems.
We need to wrap `normalizeArgsMiddleware` in a try-catch to invoke the
shared (extracted) error handler, since these errors are not within the
`main` function body but happens prior.
Before this PR:
<img width="1339" height="277" alt="image"
src="https://github.com/user-attachments/assets/911ecd4d-7117-434b-bff7-ff20dddfd84d"
/>
After:
<img width="1258" height="112" alt="image"
src="https://github.com/user-attachments/assets/f9c15bed-2df4-4e78-ac95-11f67cb9d4f5"
/>
---------
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>1 parent 58f4bc7 commit 44db03a
1 file changed
+313
-316
lines changed
0 commit comments