Commit 9cbdcf4
committed
Replace VcsProcessExitError with CheckpointInvariantError for validation failures
VcsProcessExitError was being misused with fabricated exitCode values (0 and 1)
for application-level invariant violations: empty tree OID, empty commit OID,
and unavailable checkpoint refs. These are not process exit failures.
Use CheckpointInvariantError instead, which is already imported and is the
correct semantic fit for these validation-level conditions.1 parent 10907e9 commit 9cbdcf4
1 file changed
Lines changed: 3 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
132 | 131 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | 132 | | |
137 | 133 | | |
138 | 134 | | |
| |||
146 | 142 | | |
147 | 143 | | |
148 | 144 | | |
149 | | - | |
| 145 | + | |
150 | 146 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | 147 | | |
155 | 148 | | |
156 | 149 | | |
| |||
234 | 227 | | |
235 | 228 | | |
236 | 229 | | |
237 | | - | |
| 230 | + | |
238 | 231 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 232 | | |
243 | 233 | | |
244 | 234 | | |
| |||
0 commit comments