Closed frappeerpnext closed 1 year ago
Well the library is Promise based - so you can create your own wrapper around it using a try catch block and show a popup in your exception handling.
But the library doesn't support any feature to track errors globally since sometimes you might want to chain API calls together.
@frappeerpnext @nikkothari22 There's no API available for it, but every FrappeApp
class instance will have an axios
client property that you can use. For error handling, you could add interceptors to the client and handle responses the way you want.
Hi, How can I globally handle error message from server in a single place. I mean with use .catch every time we send request to frappe server?
Thank