check for error on send