My new favorite error message 09 Feb, 2009
I ran across this error trying to run a very short Ruby program earlier. It takes the cake for being informative yet entirely confounding at the same time.
example.rb:11: syntax error, unexpected $end, expecting kEND
Turns out $end
means EOF and kEND
means the word "end" that you have to count in your head. Turns out I had forgotten to close one, half a dozen lines earlier and had to trace to make sure the indents matched what the code was actually doing. </pythonista-rant>