Return a proper error for an invalid dependency.