diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-08 21:13:24 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-10 23:46:57 +0800 |
commit | 96037aed5231aa9344e5037aa6cff3d01f4abdae (patch) | |
tree | c03ac734634156db5dfe1c71b979d0f14f0ef388 /packages/deployer/src/utils/error_reporter.ts | |
parent | f9d80adaeeec827a8c2c81507d68d11e2681dcf3 (diff) | |
download | dexon-0x-contracts-96037aed5231aa9344e5037aa6cff3d01f4abdae.tar.gz dexon-0x-contracts-96037aed5231aa9344e5037aa6cff3d01f4abdae.tar.zst dexon-0x-contracts-96037aed5231aa9344e5037aa6cff3d01f4abdae.zip |
Remove deployer
Diffstat (limited to 'packages/deployer/src/utils/error_reporter.ts')
-rw-r--r-- | packages/deployer/src/utils/error_reporter.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/packages/deployer/src/utils/error_reporter.ts b/packages/deployer/src/utils/error_reporter.ts deleted file mode 100644 index 4e73307f0..000000000 --- a/packages/deployer/src/utils/error_reporter.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { logUtils } from '@0xproject/utils'; - -/** - * Makes an async function no-throw printing errors to the console - * @param asyncFn async function to wrap - * @return Wrapped version of the passed function - */ -export function consoleReporter<T>(asyncFn: (arg: T) => Promise<void>): (arg: T) => Promise<void> { - const noThrowFnAsync = async (arg: T) => { - try { - const result = await asyncFn(arg); - return result; - } catch (err) { - logUtils.log(`${err}`); - } - }; - return noThrowFnAsync; -} |