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
Currently there is no nice / built in way of handling / checking of errors. You basically have to parse the message (hoping it has not changed in a new release) or manually recheck the various parts of the id. It would be nice to have some better way of knowing what went wrong. Perhaps something like an error.code or error instanceof TypeIdInvalidPrefixError or whatever.
Note that this is not an urgent need at the moment nor am I saying this is what needs to be there but I would like to start a discussion of what to do about this. Someone at some point might want to know what went wrong with the id or the processing of it to perhaps do something about it. If nothing else then returning better and / or custom error messages from your own API.
The text was updated successfully, but these errors were encountered:
Currently there is no nice / built in way of handling / checking of errors. You basically have to parse the message (hoping it has not changed in a new release) or manually recheck the various parts of the id. It would be nice to have some better way of knowing what went wrong. Perhaps something like an
error.code
orerror instanceof TypeIdInvalidPrefixError
or whatever.Note that this is not an urgent need at the moment nor am I saying this is what needs to be there but I would like to start a discussion of what to do about this. Someone at some point might want to know what went wrong with the id or the processing of it to perhaps do something about it. If nothing else then returning better and / or custom error messages from your own API.
The text was updated successfully, but these errors were encountered: