GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — treat partial errors as callback(err)ors by stephenplusplus · Pull Request #1760 · googleapis/google-cloud-node Conversation
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@callmehiphop PTAL |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| .map(decorateAnnotations) | ||
| .filter(function(annotation) { | ||
| // Remove annotations that had errors. | ||
| return annotation; |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * // recommendations on handling errors. | ||
| * // An API error or partial failure occurred. | ||
| * | ||
| * if (err.name === 'PartialFailureError') { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
dc9c83b to
368cde6
Compare
368cde6 to
bf50d79
Compare
bf50d79 to
8f0600d
Compare
|
Ready for a final sign off, @callmehiphop! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -1015,18 +1015,19 @@ Table.prototype.import = function(source, metadata, callback) { | |||
| * //- | |||
| * function insertHandler(err, insertErrors, apiResponse) { | |||
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * // recommendations on handling errors. | ||
| * // An API error or partial failure occurred. | ||
| * | ||
| * if (err.name === 'PartialFailureError') { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * | ||
| * // err.errors (object[]): | ||
| * // err.errors[].row (original row object passed to `insert`) | ||
| * // err.errors[].errors[].reason |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * // err.errors[].errors[].reason | ||
| * // err.errors[].errors[].message | ||
| * | ||
| * // See https://developers.google.com/bigquery/troubleshooting-errors for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| it('should return partial errors', function(done) { | ||
| var data = { | ||
| name: 'dave', | ||
| breed: 'british shorthair', |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * //- | ||
| * var callback = function(err, mutationErrors) { | ||
| * var callback = function(err) { | ||
| * if (err) { |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * if (detections.faces.errors.length > 0) { | ||
| * // Errors occurred while trying to use this image for a face annotation. | ||
| * if (err && err.name === 'PartialFailureError') { | ||
| * err.errors = [ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
PTAL! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| it('should return partial errors', function(done) { | ||
| var data = { | ||
| name: 'dave', | ||
| breed: 'british husky', |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* test: reduce retry delay multiplier to reduce test time * linter fix
* test: Log Error On Error * chore: type fix * refactor: revert accidental changes from another branch
Co-authored-by: sofisl <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.