That definitely was an inappropriate dupe target. The question asks about compilation errors. The dupe target asks about instances of Error
thrown at run-time. That's something else entirely.
When a question is on topic, closed as a duplicate, and none of the answers are relevant to the question being asked, re-opening the question is the right thing to do.
The question was not particularly high quality, but not obviously bad either*, and didn't need closure for some other reason, so in this particular case, there was nothing else you needed to do. You made a mistake in closing the question, and that mistake had been rectified.
* By not obviously bad, I mean none of the regular close reasons apply. If you feel the question is bad in that it should be downvoted, that is your right, but that should be independent of whether it should be closed.
What worries me is that judging by the comment you left on the question, you seem to think closing questions as duplicates is some sort of punishment that is important to inflict on low-quality questions, that even if the dupe target is useless to the OP, it's more important to leave the question closed than it is to allow the OP to receive an answer to the question asked. That is not what it is for. I hope I am misinterpreting your comment there, but if not, please do not do that.