And if you did it in lots of other promising stocks at the same time, it would have been a major error.
If you have reliable information from the future, sure, it makes sense to dump your life's savings into one basket that is going to pay off. Or if you are young and your “life’s savings” is a trivial fraction of even your annual surplus income, it might make some sense to take an all-in risk speculatively. But, generally, it's a bad idea.