If these error messages are going to stay in the code, the message should be a little different.  First, the line number may change and when it does, I can nearly guarantee that this line number doesn't get updated.  Also, it doesn't provide any information about what caused the error.  I recommend including the tag name in the error message.