Was this a mistake?

So a month ago, I mustered up the courage to talk to a guy I've had a crush on for a while. We talked about our siblings and our interests. He and I both like hiking, so I suggested we exchange numbers, but he politely declined and told me he was seeing someone, though we could still be friends. I told him, "Not happening, buddy ; sorry." Was I foolish for starting a conversation in the first place and getting my hopes up too high by doing this?

Was this a mistake?
Post Opinion