Joe Duffy's article on error models is a treasure trove of language design insights: https://joeduffyblog.com/2016/02/07/the-error-model/
For example, I was interested to learn that error codes are not the most efficient approach, despite their simplicity.
This is a really neat alternative to find: it honours .gitignore and makes it way easier to combine filters (tricky in find).
The docs argue SQL syntax is easier, which I totally agree with. I do wonder if SQL is ergonomically optimal though: is it the qwerty of query syntax?