From 497170df76b3d1ace52cc1eec3a4f707a3c8e50b Mon Sep 17 00:00:00 2001 From: Tim Chon Date: Fri, 6 Oct 2017 09:45:47 -0700 Subject: [PATCH] tools: use template literal in error message PR-URL: https://github.com/nodejs/node/pull/15846 Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca --- tools/doc/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`); } }