Re:Async/Await will make code simpler
by yesbabyyes on Monday August 21, 2017 @03:13PM
(#15066933)
In the example above, any error will be passed to the callback sent to getUserInfo - i.e., where you care about it.
With async/await you only need to deal with errors at the level you actually care about them (using the language build in try/catch block).