Closed Mira-Alf closed 3 years ago
@Mira-Alf I'm thinking it would be better to throw the errors, and catch them. the code you've pushed relies on the error that is returned along with the data.
I've made some modifications on my end that catch the error(rather than read the returned error). This decreases the surface area for bugs, make the code more elegent and idiomatic.
Are you OK if I propose those changes(catching rather than reading them)? I'll port the above code to use it.
Not sure I understand what exactly you mean. But go ahead and make the changes - I will take a look at it once your change is in place.
Description
Attach Screenshot