Skip to content

Commit 60ef2c9

Browse files
committedJan 31, 2015
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.
1 parent c92c50c commit 60ef2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/sassdoc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function srcEnv(documentize, stream) {
343343
});
344344

345345
let task = env.src ? documentize : stream;
346-
env.logger.debug('task:', () => task.name);
346+
env.logger.debug('task:', () => env.src ? 'documentize' : 'stream');
347347

348348
return task(env);
349349
};

0 commit comments

Comments
 (0)
Please sign in to comment.