diff options
Diffstat (limited to 'lib/internal/consoleFunc.js')
-rw-r--r-- | lib/internal/consoleFunc.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/consoleFunc.js b/lib/internal/consoleFunc.js index 6ab2f7b..35374d7 100644 --- a/lib/internal/consoleFunc.js +++ b/lib/internal/consoleFunc.js @@ -1,9 +1,10 @@ import arrayEach from 'lodash/_arrayEach'; import rest from './rest'; +import wrapAsync from './wrapAsync'; export default function consoleFunc(name) { return rest(function (fn, args) { - fn.apply(null, args.concat(rest(function (err, args) { + wrapAsync(fn).apply(null, args.concat(rest(function (err, args) { if (typeof console === 'object') { if (err) { if (console.error) { |