Storage: Batch load example does not handle errors correctly #2551
Labels
api: storage
Issues related to the Cloud Storage API.
samples
Issues that are directly related to samples.
Currently the Batch load example just logs the AppendResult, but ignores the Error/RowErrors fields. This makes the log look like it succeeded and there were no issues appending your rows. Proposing that the example should be checking the Error field, if there's content, then log all errors relating to the appended rows. E.g. something like:
The text was updated successfully, but these errors were encountered: