diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-20 01:39:35 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-20 01:39:35 +0800 |
commit | 3c66f18a46ae297181bdc82023a8e8bd895eebe1 (patch) | |
tree | 52de4d8c34b3211fa8d2b27070598bd0ac6be016 | |
parent | 93518802d6d5baf76c8c66e825eddd4241d4fa7c (diff) | |
download | dexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.tar dexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.tar.gz dexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.tar.bz2 dexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.tar.lz dexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.tar.xz dexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.tar.zst dexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.zip |
Don't throw in transformers
-rw-r--r-- | packages/0x.js/src/utils/decorators.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/src/utils/decorators.ts b/packages/0x.js/src/utils/decorators.ts index 060a26df9..2a823b9ac 100644 --- a/packages/0x.js/src/utils/decorators.ts +++ b/packages/0x.js/src/utils/decorators.ts @@ -20,7 +20,7 @@ const schemaErrorTransformer = (error: Error) => { if (_.includes(error.message, constants.INVALID_TAKER_FORMAT)) { // tslint:disable-next-line:max-line-length const errMsg = 'Order taker must be of type string. If you want anyone to be able to fill an order - pass ZeroEx.NULL_ADDRESS'; - throw new Error(errMsg); + return new Error(errMsg); } return error; }; |