While there is a reason why it did so, those are error messages which are quite hard to understand the first few times they occur to you.
Nevertheless, those lousy error message should be exceptions nowadays, and if you are using decent technologies, the chances are much higher, that you just didn't read the error message not careful enough to understand the problem.