Skip to content

Commit

Permalink
Provide more context in lint error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wincent committed Aug 26, 2017
1 parent 31cb269 commit 84e0ad8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/lint/no-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ module.exports = function(context) {
if (node.async) {
context.report(
node,
'async functions are not allowed outside of the test suite'
'async functions are not allowed outside of the test suite ' +
'because older versions of NodeJS do not support them ' +
'without additional runtime dependencies. Instead, use explicit ' +
'Promises.'
);
}
},
Expand Down

0 comments on commit 84e0ad8

Please sign in to comment.