Sometimes, I ran into an error like this in ruby:
syntax error, unexpected keyword_end, expecting end-of-input
keyword_end implies that you had a block of code with a missing
def fun(f) puts "Oops!"
End-of-input implies that you have already closed up blocks of code with one too many
def fun(f) puts "Okay..." end end