summaryrefslogtreecommitdiff
path: root/internal/executor/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/executor/helpers.go')
-rw-r--r--internal/executor/helpers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/executor/helpers.go b/internal/executor/helpers.go
index aee7da0..bd5d9d5 100644
--- a/internal/executor/helpers.go
+++ b/internal/executor/helpers.go
@@ -88,6 +88,9 @@ Loop:
totalCost = cost
}
}
+ if err := scanner.Err(); err != nil && streamErr == nil {
+ streamErr = fmt.Errorf("reading claude stdout: %w", err)
+ }
return totalCost, sessionID, streamErr
}