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
I'm trying oto and thanks it's made creating a client lib so easy. I wonder could oto create an error object for the client-side ? I imagine something like this
// index.jstry{res=awaitgreeter.Greets(req)}catch(err){switch(err.message){casegreeter.ErrInvalidArgument:
// do somethingcasegreeter.ErrPermissionDenined:
// do somethingcasegreeter.ErrInternal:
// do something}}
The text was updated successfully, but these errors were encountered:
Hey @fahmifan, I could see a reason to do this. You could modify the template and make this for yourself, but do you think the standard Oto template should also do this as well?
@matryer That would be great really great, if OTO has this feature built in!
Unfortuantely i haven't got a chance to try implement the custom template my self, I'll try it if i got the chance
I'm trying oto and thanks it's made creating a client lib so easy. I wonder could oto create an error object for the client-side ? I imagine something like this
The text was updated successfully, but these errors were encountered: