Error reporting is not available for API and Data Import Tool in v9.2.x

In earlier versions of erpnext if there was an error in API request we used to get a stack trace in response and also if the CSV format for data import is incorrect we used to get a row-wise error. Since new release, this seems not to be working.

Step to recreate for API

  1. Send any POST request using frappe client to create a new doc intentionally missing some mandatory field.
  2. All you will get is Internal Server Error

Step to recreate for Data import tool

  1. Delete any mandatory column in the import sheet or try deleting some headings
  2. All you will get is Please correct the format of the file and import again.

Software Versions:

ERPNext: v9.2.3 (master)
Frappe Framework: v9.2.3 (master)