Googleaction function to handle error in ON_ERROR


#1

Hi all,

what’s the alternative for this.$alexaSkill.getError()

ON_ERROR() {
console.log(Error: ${JSON.stringify(this.$alexaSkill.getError())});
},

I need to handle for Google action

ON_ERROR() {
// Triggered when there is an error
    console.log(`Error: ${JSON.stringify(this.$googleAction.getError())}`);
}

but that didnt work


#2

This currently only works with Alexa (which has specific error request types that Google Actions don’t have)