Improve verbose logging

This commit is contained in:
Fabio Berger
2018-06-20 19:12:31 +02:00
parent 5c0183c71e
commit 3ce449e167

View File

@@ -308,12 +308,15 @@ export class CoreCombinatorialUtils {
this.takerAddress,
this.zrxAssetData,
);
} catch (err) {
if (isVerbose) {
logUtils.log(`Expecting order to ${isFillFailureExpected ? 'fail' : 'succeed'} with:`);
logUtils.log(`Expecting fillOrder to succeed.`);
}
} catch (err) {
isFillFailureExpected = true;
if (isVerbose) {
logUtils.log(`Expecting fillOrder to fail with:`);
logUtils.log(err);
}
isFillFailureExpected = true;
}
// 6. Fill the order