diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-26 23:41:08 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-26 23:41:08 +0800 |
commit | 79249f5e8a37e139c9297a94479f269bf61514af (patch) | |
tree | 9dd5a19aaab71c1a3bea100c11b30a49f42ca3f3 | |
parent | 066c7ff0aa5c2cd657ae40b72bf1268119a86255 (diff) | |
download | dexon-sol-tools-79249f5e8a37e139c9297a94479f269bf61514af.tar dexon-sol-tools-79249f5e8a37e139c9297a94479f269bf61514af.tar.gz dexon-sol-tools-79249f5e8a37e139c9297a94479f269bf61514af.tar.bz2 dexon-sol-tools-79249f5e8a37e139c9297a94479f269bf61514af.tar.lz dexon-sol-tools-79249f5e8a37e139c9297a94479f269bf61514af.tar.xz dexon-sol-tools-79249f5e8a37e139c9297a94479f269bf61514af.tar.zst dexon-sol-tools-79249f5e8a37e139c9297a94479f269bf61514af.zip |
move console log into UNHANDLED_ERROR clause
-rw-r--r-- | src/ts/contract_wrappers/contract_wrapper.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ts/contract_wrappers/contract_wrapper.ts b/src/ts/contract_wrappers/contract_wrapper.ts index ee1c6c90d..225cb960f 100644 --- a/src/ts/contract_wrappers/contract_wrapper.ts +++ b/src/ts/contract_wrappers/contract_wrapper.ts @@ -42,10 +42,10 @@ export class ContractWrapper { return contractInstance; } catch (err) { const errMsg = `${err}`; - utils.consoleLog(`Notice: Error encountered: ${err} ${err.stack}`); if (_.includes(errMsg, 'not been deployed to detected network')) { throw new Error(ZeroExError.CONTRACT_DOES_NOT_EXIST); } else { + utils.consoleLog(`Notice: Error encountered: ${err} ${err.stack}`); throw new Error(ZeroExError.UNHANDLED_ERROR); } } |