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
When catching `ExecaError`, the class checks `throwOnError` before re-throwing. If disabled, it returns a `RunResult` with `isError: true` instead of throwing.
134
+
Three approaches to error handling:
135
+
-`run()`: Always throws on error (uses `reject: true` in execa)
136
+
-`safeRun()`: Never throws, returns result with `success: false` (uses `reject: false` in execa)
137
+
-`execute({ throwOnError })`: Explicit control over throw behavior
138
+
139
+
When using `safeRun()` or `execute({ throwOnError: false })`, check `result.success` to determine if the command succeeded.
119
140
120
141
### Stdio Configuration
121
142
Output modes are implemented by mapping to execa's stdio arrays:
0 commit comments