Read the ENTIRE message. It will tell you what line number to look at.

If you're still not sure how you messed up, you'll need to trim down your code to the minimum amount that still shows your problem. If it is still not obvious, post that code along with the exact error message (copy paste, don't type from memory).

Alternatively, build more pylons and recruit some psychics.

EDIT: That's a bit better, but use <code></code> tags so that your code & results are legible