Adding msg direction parameter to on_msg_error, differentiating
incoming and outgoing errors.

Change-Id: I3fdf9f6585ca0fa1c0cde3ab40ea76d3172e96a0
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>