#1228: handle snopt errors