From 60ef2c93afd0c97590b51d8caf6df1e7650833bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rian=20Galliat?= Date: Sat, 31 Jan 2015 16:09:01 +0100 Subject: [PATCH] Fix debug task name Since `documentize` is an async function, it was in fact a 6to5 wrapper and not the original named function, thus `task.name` was returning a funny name like `callee$1$0`. This fix ensures the right name is displayed. --- src/sassdoc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sassdoc.js b/src/sassdoc.js index 3c678009..c0b1c10d 100644 --- a/src/sassdoc.js +++ b/src/sassdoc.js @@ -343,7 +343,7 @@ function srcEnv(documentize, stream) { }); let task = env.src ? documentize : stream; - env.logger.debug('task:', () => task.name); + env.logger.debug('task:', () => env.src ? 'documentize' : 'stream'); return task(env); };