Replies: 1 comment
-
|
Hey @spetca, I encourage you to ask the question by opening an issue in the related repository. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a question about this file. Taking updateArticle and getArticle as an example, some of the functions in this file omit try/catch's. Is it to obfuscate back end failure from the front end - i.e. the only errors we care about are errors that were caused by sending data from the front end? I see that the only places that have try/catch's are where axios is receiving a second argument
`
wondering if anyone knows the reasoning for omitting try catches on some of these? or has any resources to read about this? In short, why wouldnt you use always use a Result type and thus a try/catch scheme, at least for the sake of consistency within this file?
thanks!
Beta Was this translation helpful? Give feedback.
All reactions