Error returns any errors encountered so far. No commits would be run once an error is detected.
()
| 208 | |
| 209 | // Error returns any errors encountered so far. No commits would be run once an error is detected. |
| 210 | func (wb *WriteBatch) Error() error { |
| 211 | // If the interface conversion fails, the err will be nil. |
| 212 | err, _ := wb.err.Load().(error) |
| 213 | return err |
| 214 | } |
no outgoing calls