We often raise exceptions in our code and accompany them with an explanation in string form. Alas, the string isn't always unique, so it doesn't point to the place where the exception was raised, but multiple possible places.
We absolutely must raise unique strings, or they are not helpful for debugging! Let's grep -r raise | sort | uniq -d the sources and fix stuff up.
We often
raise
exceptions in our code and accompany them with an explanation in string form. Alas, the string isn't always unique, so it doesn't point to the place where the exception was raised, but multiple possible places.We absolutely must raise unique strings, or they are not helpful for debugging! Let's
grep -r raise | sort | uniq -d
the sources and fix stuff up.