Skip to content

Commit bb03e7a

Browse files
juliusmarmingecodex
andcommitted
fix: preserve Git fallback failure causes
Co-authored-by: codex <[email protected]>
1 parent 8e114eb commit bb03e7a

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

‎apps/server/src/vcs/GitVcsDriverCore.ts‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,14 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
20382038
Effect.catchTags({
20392039
GitCommandError: (error) =>
20402040
Effect.logWarning(
2041-
`GitVcsDriver.listRefs: remote refName lookup failed for ${input.cwd}: ${error.message}. Falling back to an empty remote refName list.`,
2041+
"Git remote ref lookup failed; falling back to an empty remote ref list.",
2042+
{
2043+
operation: error.operation,
2044+
command: error.command,
2045+
cwd: error.cwd,
2046+
detail: error.detail,
2047+
cause: error,
2048+
},
20422049
).pipe(
20432050
Effect.as({
20442051
exitCode: ChildProcessSpawner.ExitCode(1),
@@ -2063,7 +2070,14 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
20632070
Effect.catchTags({
20642071
GitCommandError: (error) =>
20652072
Effect.logWarning(
2066-
`GitVcsDriver.listRefs: remote name lookup failed for ${input.cwd}: ${error.message}. Falling back to an empty remote name list.`,
2073+
"Git remote name lookup failed; falling back to an empty remote name list.",
2074+
{
2075+
operation: error.operation,
2076+
command: error.command,
2077+
cwd: error.cwd,
2078+
detail: error.detail,
2079+
cause: error,
2080+
},
20672081
).pipe(
20682082
Effect.as({
20692083
exitCode: ChildProcessSpawner.ExitCode(1),

0 commit comments

Comments
 (0)