4 ms·
Even getting logs is luxury in many cases. I found it better to write 'fail fast' code. Module in that example should fail with reasonable error message, if i
by qwerta 14y ago
Even getting logs is luxury in many cases. I found it better to write 'fail fast' code. Module in that example should fail with reasonable error message, if it was used incorrectly.
- gbog 14y agoIf your codebase is a bit more complex than hello world, a single helpful error message is hard to do right, because if you have a crash it should mean something unknown happened that you cannot fix at coding time. So it is better, in error messages, to not try to guess what is the problem and just state the wrongful facts. But then only the log and the traceback will help. No wonder most people just Google error messages.