You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
Is there a reason why you return only the error message instead of a JSON object so that an app can have cleaner/better error handling?
For example, at this line, I would return the error.userInfo instead of error.localizedDescription:
userInfo: {
NSLocalizedDescription = "The email address is already in use by another account.";
"error_name" = "ERROR_EMAIL_ALREADY_IN_USE";
}
If you are on-board with this I can submit a PR with some changes and maybe support backward compatibility by adding a boolean returnJson parameter to relevant functions that defaults to false.
What do you say?
The text was updated successfully, but these errors were encountered:
Hi Eddy,
Is there a reason why you return only the error message instead of a JSON object so that an app can have cleaner/better error handling?
For example, at this line, I would return the
error.userInfo
instead oferror.localizedDescription
:If you are on-board with this I can submit a PR with some changes and maybe support backward compatibility by adding a boolean
returnJson
parameter to relevant functions that defaults to false.What do you say?
The text was updated successfully, but these errors were encountered: