Return more meaningful errors