|
|
|
|
|
by medhir
430 days ago
|
|
not a solution for every single type of JS error, but reading through this I found myself wondering why not just use .then().catch() statements when making async calls. Compared to try / catch with await, falling back to promises at least makes the error handling explicit for each request — more along the lines of what Go does without having to introduce a new pattern. |
|