update stock error check