When calling frappe.call and it returns an error, does anyone have a way to prevent an error dialog? I assumed if I provided an error callback, that is all that would happen, however both the callback and the dialog is happening. For example:
frappe.call({
method: "package.method",
args: {
id: 0
},
callback: ( response ) => {
console.log( "Success" );
},
error: ( response ) => {
console.log( "Error" );
}
});
The method is returning an error because the ID is invalid. The error callback is being called and I see the console output. But also a dialog is popping up with the error message from the call. I don’t want the dialog - I want to handle the error a different way.