3 ms·
Better still: add a unique prefix to the error code, so it's googlable. The Typescript team does this with compilation errors, like `TS12345: frobulating types
by mceachen 4y ago
Better still: add a unique prefix to the error code, so it's googlable.
The Typescript team does this with compilation errors, like `TS12345: frobulating types cannot be transmuted`.
- deleted 4y ago[deleted]
- rmetzler 4y agoYes, that type of thing is pretty useful for linters. These error codes act as identifiers if you need to google them and whenever you need to configure the linter the way you like it or for one-off exceptions.