meteor-raven icon indicating copy to clipboard operation
meteor-raven copied to clipboard

How to catch exception in Meteor.methods?

Open proft opened this issue 9 years ago • 0 comments

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)
    })

proft avatar Jun 18 '16 10:06 proft