You told him you had weed, not that it matters, he surely smelled it anyway. Either amounts to probable cause. But don't worry to much, you aren't gonna go to jail or anything, at worst it's probation or a fine.