aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-20 01:39:35 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-20 01:39:35 +0800
commit3c66f18a46ae297181bdc82023a8e8bd895eebe1 (patch)
tree52de4d8c34b3211fa8d2b27070598bd0ac6be016 /packages/0x.js/src
parent93518802d6d5baf76c8c66e825eddd4241d4fa7c (diff)
downloaddexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.tar.gz
dexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.tar.zst
dexon-sol-tools-3c66f18a46ae297181bdc82023a8e8bd895eebe1.zip
Don't throw in transformers
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/utils/decorators.ts2
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;
};