daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "stackdriver-errors-js": "^0.2.0"
  2.    
  3. import errorHandler from './error/error-reporting';
  4.    
  5. import { StackdriverErrorReporter } from 'stackdriver-errors-js';  
  6.  
  7. let errorHandler;
  8.  
  9. errorHandler = new StackdriverErrorReporter();  
  10. errorHandler.start({
  11.     key: "{{.Config.StackDriverApiKey}}",
  12.     projectId: "{{.Config.StackDriverProject}}",
  13.     service: "{{.Config.GoogleCloudProjectID}}",
  14.     version: "{{.Copacknfig.GaeEnv}}",
  15.     disabled: false
  16. });
  17.  
  18. export default errorHandler;
  19.    
  20. [vue-devtools] Ready. Detected Vue v2.4.2
  21. (function testErrorReporting() {window.onerror(null, null, null, null, new Error('Test: Something broke!'));})();
  22.  
  23. stackdriver-errors.js:109 Uncaught ReferenceError: StackTrace is not defined
  24.     at StackdriverErrorReporter.webpackJsonp.556.StackdriverErrorReporter.report (stackdriver-errors.js:109)
  25.     at window.onerror (stackdriver-errors.js:67)
  26.     at testErrorReporting (<anonymous>:1:40)
  27.     at <anonymous>:1:111
  28.    
  29. ...    
  30. StackTrace.fromError(err).then(function(stack){
  31. ...
RAW Paste Data
Top