Is there a way to tell the ErpNext REST API to return a JSON response when an error occurs?
I’ve been scrolling back and forth through reams of HTML to find error messages and it just occurred to me – “This isn’t even remotely normal! Since when does a computer to computer interface return a computer to human response to report an error?”
It’s an inconsistent design. That said, fixing it would require changing your app.py file or changing the way that errors are handled in the front end of frappe.
That flag is set to False and is not available outside that function. It’s set another half dozen times below there as well.