I think part of it is that the shell is not the most forgiving of syntax errors, and Erlang doesn't always give the clearest syntax error description.
It's always been correct by line number for me, but I usually have to read that and the line above/below to understand what my actual errors are.
My argument is wrong then-- this isn't shockingly bad anything, just a little quirkiness.