refine error output
fix a bug causing unable to parse data received.