treat error message as received msg

and also fix fix flag, using 'and' instead 'equal'

Signed-off-by: xiehuc <xiehuc@gmail.com>