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 — error-reporting: Fix bug with errors not published by DominicKramer · Pull Request #2314 · googleapis/google-cloud-node Conversation
Contributor
This commit fixes a bug where if
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThis commit fixes a bug where if `errors.event().setMessage(string)` was used to build an error to report, the error wouldn't appear in the error reporting console.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
matthewloring
suggested changes
This comment was marked as spam.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Previously the stack trace at the point `errors.report` was called was used.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
matthewloring
approved these changes
|
| function newMessage() { | ||
| return new ErrorMessage().setServiceContext( | ||
| // The API expects a reported error to contain a stack trace. | ||
| // However, users do not need to provide a stack trace for stack |
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.
| // will not accept the ErrorMessage if it has additional properties. | ||
| delete err._autoGeneratedStackTrace; | ||
| } | ||
| else { |
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.
| // The API expects the error to contain a stack trace. Thus we | ||
| // append the stack trace of the point where the error was constructed. | ||
| // See the `message-builder.js` file for more details. | ||
| if (err._autoGeneratedStackTrace) { |
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.
* Updated docs * Fixed some code comments * Fixed some code formatting
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nit
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| The stack trace associated with an error can be viewed in the error reporting console. | ||
| * If the `errors.report` method is given an `ErrorMessage` object built using the `errors.event` method, the stack trace at the point where the error event was constructed will be used. | ||
| * If the `errors.report` method is given an `Error` object, the stack trace where the error originated will be used. |
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.
|
@stephenplusplus This is ready to land since the broken tests appear to be unrelated to the Here is the end of the test failure: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* chore: add sample for statement timeout within a transaction * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix-presubmit --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
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.