fix incorrect error message (obvious cut and paste bug from upstream)