If you get ln(x), you are basically asking "what is the value that when you do exp(that number) you get x"
E.g. ln(1), so what power of e, gives 1. Answer 0
So for ln(0), what power of e, gives 0. Answer, there isn't one. Which is why you get an error.