I have 2 methods:
// Async
Meteor.methods({
async first(......){
try {
}catch(err){
throw error Meteor.Error(......)
}
},
second(){
try {
// Call the first method
Meteor.call('first')
}catch(err){
throw error Meteor.Error(......)
}
}
})
-------------
// Client
Meteor.call('second', .......)
I don’t get throw error
on second method
, but the first
method is error!!!
(UnhandledPromiseRejectionWarning: Unhandled promise rejection)
Please help me.