![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/8345323a-1701-4093-88f2-c20c76cae9a8.png)
How can I change this word such as ‘My app returned “Custom Invalid param”’?
Thank you.
Best answer by Marille
View originalHow can I change this word such as ‘My app returned “Custom Invalid param”’?
Thank you.
Best answer by Marille
View originalFixed it.
return z.request(options)
.then((response) => {
//
}).catch((err) => {
//let get_error = JSON.parse(err.message);
//let content = JSON.parse(get_error.content);
throw new z.errors.Error(‘My app returned “Custom Invalid param”’);
})
Hey
Great work and thanks for sharing with the Community!
All the available error classes to throw in your code, along with examples, are described here: https://github.com/zapier/zapier-platform/blob/main/packages/cli/README.md#zerrors
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.