From 917ccc94b815c2ba1cfda79c6e1b73967f505bf0 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 0ae413ea7f6a82..53c9c5b5eec7bd 100644 --- a/tools/doc/generate.js +++ b/tools/doc/generate.js @@ -89,6 +89,6 @@ function next(er, input) { break; default: - throw new Error('Invalid format: ' + format); + throw new Error(`Invalid format: ${format}`); } }