Skip to content

Hotfix 26 stack trace missing#30

Merged
steren merged 8 commits intoGoogleCloudPlatform:masterfrom
Jastrzebowski:hotfix-26-StackTrace-missing
Dec 12, 2017
Merged

Hotfix 26 stack trace missing#30
steren merged 8 commits intoGoogleCloudPlatform:masterfrom
Jastrzebowski:hotfix-26-StackTrace-missing

Conversation

@Jastrzebowski
Copy link
Copy Markdown
Contributor

  • Add an error on init if StackTrace is missing
  • Add tests
  • Fix minor code style issues

* Add an error on init if StackTrace is missing
* Add tests
* Fix minor style issues inconsistence in quotes
Copy link
Copy Markdown
Collaborator

@steren steren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you separate the refactoring changes (" -> ')

Comment thread stackdriver-errors.js
* limitations under the License.
*/
(function(exports) {
"use strict";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you separate these quotes refactoring from the actual change (in 2 different PRs)

Comment thread stackdriver-errors.js Outdated
}
if(typeof StackTrace === 'undefined') {
// Inform about missing dependency
throw new Error('Cannot initialize: StackTrace object is missing, check if concat.dist.js version of stackdriver-errors was loaded');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use "make sure you loaded "dist/stackdriver-errors-concat.js" or "dist/stackdriver-errors-concat.min.js", or that you imported the "stacktrace-js" module"

@steren
Copy link
Copy Markdown
Collaborator

steren commented Dec 12, 2017

Thanks!
Can you resolve conflicts so that the PR can be merged?

Comment thread test/test.js Outdated
expect(function() {errorHandler.start({projectId:'projectId', key:'key'});}).to.throw(Error, /StackTrace/);
window.StackTrace = stackTrace
});
<<<<<<< HEAD
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please clean this.

@steren steren merged commit f549a50 into GoogleCloudPlatform:master Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants