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
* refactor: normalize runCommandWithOutput result type to handle spawn errors
* fix: add braces to single-line if statements in process.ts
* chore: add changeset for runCommandWithOutput normalization
* test: add unit tests for runCommandWithOutput covering all result paths
---------
Co-authored-by: Ricardo Cabral <me@ricardocabral.io>
Normalize runCommandWithOutput to return a CommandResult discriminated union instead of rejecting on spawn errors, fixing a crash in `info --json` when Docker is not installed.
spinner.fail(stashResult.ok===false&&stashResult.reason==='not-found' ? 'Update failed: git is not installed' : 'Update failed while stashing local changes')
23
+
return1
24
+
}
21
25
if(stashResult.code!==0){
22
26
spinner.fail('Update failed while stashing local changes')
0 commit comments