Skip to content

Commit e809abd

Browse files
committed
[commands] improve progress output
1 parent 5e4b64b commit e809abd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎internal/commands/messages/batch/batch_send.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,11 @@ func runBatchSend(
375375

376376
out := make([]batchRowResult, 0, len(rows))
377377
for result := range results {
378-
state := string(result.State.State)
378+
var state string
379379
if result.Error != nil {
380380
state = fmt.Sprintf("failed: %s", result.Error.Error())
381+
} else {
382+
state = string(result.State.State)
381383
}
382384
fmt.Fprintf(os.Stderr, "[%d] %s: %s\n", result.RowNumber, result.Identifier, state)
383385
out = append(out, result)

0 commit comments

Comments
 (0)