The point of migration is to move a question to a different site in the community where it would both be on-topic and meet the site's guidelines. The post you've linked, at a minimum, doesn't fulfil that second requirement and you admit that it lacks a minimal reproducible example. As a result the question was closed per Stack Overflow's guidelines, as it required debugging details.
There is, however, a difference to the behaviour when a migrated question is closed, it is returned to the original site it was closed on. This means that the question cannot be a candidate for reopening (even as a user with ~90k reputation there is no reopen option). The question will likely remain closed on the other site as well, if it isn't on-topic (which it appears it isn't as as a moderator you closed it).
The correct action here would been to vote to close the question (on Ask Different), however, note in the comments that the question would likely be on topic on a different site in the community, such as Stack Overflow. As you are aware that the question doesn't meet the guidelines though, you should tell them that as well. Link them to the site's tour, and if you know what might improve it, advise them of that.
If the OP then chooses to cross-post and not improve the question then it would be closed again, for the same reason, but it could be improved and reopened. Though, they could likely have to wait days for the question to get successfully through the reopen queue.
Of course, if you encounter a question you know would fit the site well, do migrate it. In truth, Migrating is hard; there are many questions that get rejected by the site the question is sent to. Unfortunately, as curators, we aren't always aware of the nuances of other sites, and that can mean that a question that looks good still might not "ok" on the other site.