check buy/sell errors