deepwell / meteor-raven

Raven/Sentry integration package for Meteor
29 stars 10 forks source link

How to catch exception in Meteor.methods? #13

Open proft opened 8 years ago

proft commented 8 years ago

Hi!

I have method

Meteor.methods
    getError: ->
        throw new Meteor.Error(1500, 'There was an error processing your request' );

I execute this method from client. In client I see Error invoking Method 'getError': There was an error processing your request [1500]. But in sentry server it's absence

My server init looks like

    RavenLogger.initialize({
        server: 'http://key1:key2@localhost:9000/3'
    }, {
        patchGlobal: ->
            console.log('Bye, bye, world')
            process.exit(1)
    })