From 79249f5e8a37e139c9297a94479f269bf61514af Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 26 May 2017 17:41:08 +0200 Subject: move console log into UNHANDLED_ERROR clause --- src/ts/contract_wrappers/contract_wrapper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ts') 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); } } -- cgit v1.2.3