Whoa, truss. Big hammer.
Please post what you are actually entering to the console.
your error is defined, but the x factor in ping(x) = error is not stated.
ping has always seemed so reliable to me--and forthright. It is telling you something. So, what did you ask it ?
once we know...