ENH more explicit error message for ill-posed problem