Updated error messages to point to correct variables

Corrected statements for the error messages.
Changed `s.Flush()` to `c.Flush()`.
Changed `s.Recieve()` to `c.Receive()`