Skip to content

Commit

Permalink
fixup! Improve the 'ESM over Node <9' error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaq committed Apr 3, 2019
1 parent 68fc40e commit eb902c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ var doctest = require ('..');

if (program.module === 'esm') {
process.stderr.write (
common.formatErrors (
common.formatErrors ([
'Node.js v' +
process.versions.node +
' does not support ECMAScript modules (supported since v9.0.0)'
)
])
);
process.exit (1);
}
Expand Down

0 comments on commit eb902c5

Please sign in to comment.