Add rows affected and query idx for ErrQueryAffectedMoreThanOneRow#121
Conversation
|
Claude finished @MarcusGoldschmidt's task in 59s —— View job PR Review
Overall: This is a small, useful improvement. Adding the rows affected count and query index to the error will make debugging provisioning issues much easier — especially when multiple queries are involved. The sentinel error is correctly preserved via One suggestion on the error message format ( The current format string reads a bit awkwardly: return fmt.Errorf("provisioning query affected rows %d > 1, query idx: %d error: %w", rowsAffected, idx, ErrQueryAffectedMoreThanOneRow)Consider restructuring for clarity — something like: return fmt.Errorf("provisioning query at index %d affected %d rows: %w", idx, rowsAffected, ErrQueryAffectedMoreThanOneRow)This reads more naturally ("query at index 2 affected 5 rows") and drops the redundant No issues with correctness:
LGTM with the minor formatting nit above — take it or leave it. |
|
Claude finished @MarcusGoldschmidt's task in 45s —— View job PR Review
Overall: Clean improvement — the updated error message at I see the second commit ( return fmt.Errorf("provisioning query at index %d affected %d rows: %w", idx, rowsAffected, ErrQueryAffectedMoreThanOneRow)Correctness check:
No issues found. LGTM. |
Description
Useful links: