aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-21 22:24:41 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-21 22:24:41 +0800
commit111f7e917ed3cb16de9930e093ea7dbcb9451d19 (patch)
tree23d494a1a3eab5acc8a820c4820bc81e7b093de5 /packages/deployer/src/utils
parent477daf416805633d02c6d387be26bee6ed747ebe (diff)
downloaddexon-sol-tools-111f7e917ed3cb16de9930e093ea7dbcb9451d19.tar
dexon-sol-tools-111f7e917ed3cb16de9930e093ea7dbcb9451d19.tar.gz
dexon-sol-tools-111f7e917ed3cb16de9930e093ea7dbcb9451d19.tar.bz2
dexon-sol-tools-111f7e917ed3cb16de9930e093ea7dbcb9451d19.tar.lz
dexon-sol-tools-111f7e917ed3cb16de9930e093ea7dbcb9451d19.tar.xz
dexon-sol-tools-111f7e917ed3cb16de9930e093ea7dbcb9451d19.tar.zst
dexon-sol-tools-111f7e917ed3cb16de9930e093ea7dbcb9451d19.zip
Add function docs
Diffstat (limited to 'packages/deployer/src/utils')
-rw-r--r--packages/deployer/src/utils/error_reporter.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/deployer/src/utils/error_reporter.ts b/packages/deployer/src/utils/error_reporter.ts
index bf3f96a7c..4e73307f0 100644
--- a/packages/deployer/src/utils/error_reporter.ts
+++ b/packages/deployer/src/utils/error_reporter.ts
@@ -1,7 +1,11 @@
import { logUtils } from '@0xproject/utils';
-// Makes an async function no-throw printing errors to the console
-export function consoleReporter<T>(asyncFn: (arg: T) => Promise<void>) {
+/**
+ * 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);