You did not show what you did nor the error that you got. Therefore, we cannot help you to learn to interpret the error message nor to see where it came from.
Peter, your response made me laugh, because all that does is remove the syntactic sugar :P
(But it's technically a correct answer to this vaguely posed question.)