diff --git a/tools/doc/generate.js b/tools/doc/generate.js index b7fcf0d4f90da5..1b04be832d954c 100644 --- a/tools/doc/generate.js +++ b/tools/doc/generate.js @@ -68,6 +68,6 @@ function next(er, input) { break; default: - throw new Error('Invalid format: ' + format); + throw new Error(`Invalid format: ${format}`); } }