You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c97fffe
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(@angular/cli): improve error handling and structure of zoneless tool
This commit refactors the `onpush-zoneless-migration` tool to improve its internal structure, readability, and error handling.
The file discovery and categorization logic has been extracted from the main tool function into a new, dedicated `discoverAndCategorizeFiles` helper function. This change improves separation of concerns and makes the main function's orchestration role clearer.
Additionally, focused `try...catch` blocks have been added to gracefully handle cases where the user provides an invalid or inaccessible file path. This prevents the tool from crashing and provides a clear error message to the user, while allowing other internal errors to propagate correctly.
0 commit comments