Skip to content

Instantly share code, notes, and snippets.

@chakrit
Created October 7, 2013 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chakrit/6865372 to your computer and use it in GitHub Desktop.
Save chakrit/6865372 to your computer and use it in GitHub Desktop.
require('coffee-script');
require('./test.coffee');
{
"name": "x",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "BSD-2-Clause",
"dependencies": {
"raven": "0.5.3",
"coffee-script": "~1.6.3"
}
}
DSN = '____YOUR_SENTRY_DSN_HERE_____'
raven = require 'raven'
client = new raven.Client DSN
client.patchGlobal()
setTimeout ->
console.log 'error!'
throw new Error 'test!'
, 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment