Skip to content

Commit

Permalink
Fix debug task name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
valeriangalliat committed Jan 31, 2015
1 parent c92c50c commit 60ef2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sassdoc.js
Expand Up @@ -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);
};
Expand Down

0 comments on commit 60ef2c9

Please sign in to comment.