diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-21 01:12:31 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-21 01:12:31 +0800 |
commit | 3ce449e16739896f81b171d130afbb5774829d64 (patch) | |
tree | 9bf3208ebd9004221e40e15c25234ad9bffc6ebc /packages/contracts | |
parent | 5c0183c71ef9f988c6a7c799c177df53c222acb3 (diff) | |
download | dexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.tar.gz dexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.tar.zst dexon-sol-tools-3ce449e16739896f81b171d130afbb5774829d64.zip |
Improve verbose logging
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/src/utils/core_combinatorial_utils.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/contracts/src/utils/core_combinatorial_utils.ts b/packages/contracts/src/utils/core_combinatorial_utils.ts index 4d6f3b965..f1a5599ef 100644 --- a/packages/contracts/src/utils/core_combinatorial_utils.ts +++ b/packages/contracts/src/utils/core_combinatorial_utils.ts @@ -308,12 +308,15 @@ export class CoreCombinatorialUtils { this.takerAddress, this.zrxAssetData, ); + if (isVerbose) { + logUtils.log(`Expecting fillOrder to succeed.`); + } } catch (err) { + isFillFailureExpected = true; if (isVerbose) { - logUtils.log(`Expecting order to ${isFillFailureExpected ? 'fail' : 'succeed'} with:`); + logUtils.log(`Expecting fillOrder to fail with:`); logUtils.log(err); } - isFillFailureExpected = true; } // 6. Fill the order |