| ▲ | deepsun 7 hours ago | |||||||||||||
I hate when tools only produce generic "TLS Handshake failed" instead of saying why exactly it failed, where is the problem. | ||||||||||||||
| ▲ | thunky 7 hours ago | parent | next [-] | |||||||||||||
Sounds like you'd both be happy if the tool produced both. | ||||||||||||||
| ||||||||||||||
| ▲ | kitd 7 hours ago | parent | prev [-] | |||||||||||||
This is the kind of scenario that is served better by Go/C-style error values than exceptions. Error values facilitate and encourage you to log what you were doing at the precise point when an error occurs. Doing the same with exceptions idiomatically often requires an exception hierarchy or copious amounts of separate try/catches. The difference really becomes apparent when trying to debug a customer's problem at 3am (IME). | ||||||||||||||