3 ms·
Error codes are googlable. Things like "TS1234", "flake8 E802", "Yarn E4882" etc are pretty much guaranteed to give you the results you want. Whereas "yarn som
by scrollaway 8y ago
Error codes are googlable.
Things like "TS1234", "flake8 E802", "Yarn E4882" etc are pretty much guaranteed to give you the results you want. Whereas "yarn some-error-text" can be much noisier, especially if the error text changes over time, is short, is obscure or even translated. Worst case they're also more greppable inside the codebase.
Error codes are a really, really good idea if your application is popular and used by devs, IMO.
- Klathmon 8y ago> if your application is popular and used by devs I'd argue even if it's not popular and it's used by non-devs. Error codes saved our support people a ton of time when trying to understand user problems. It's good for the user to be able to understand the problem, but it's great when they can call you up or send a ticket in about error "E4882", and you instantly have a good amount of information about the problem.