Created
October 7, 2013 09:56
-
-
Save chakrit/6865372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('coffee-script'); | |
require('./test.coffee'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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