fixed quotation issue causing fail message to be thrown even on success