From 5b5b5c0f1584814a1edd9f2f5bb142479028b9a7 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}`); } }