I know that the following holds in much more generality, but lets say everything happens in the toric case over $\mathbb{C}$.
Setting: Given a smooth variety $X$ then there is an isomorphism between the group of Cartier divisors of $X$ and the group of Weil divisors of $X$. I know and understand how to come from a Weil divisor $D$ to its Cartier divisor and back.
Question: What fails in the singular case? I think of a Cartier divisor as a locally principal Weil divisor. Given a Weil Divisor $D$ on $X$ and let $U \subset X$ be the singular locus of $X$. My guess is, that $D|_U$ fails to be principal. But what does this exactly mean?