print error message when unable send message

Signed-off-by: xiehuc <xiehuc@gmail.com>

Signed-off-by: xiehuc <xiehuc@gmail.com>