Browse Source

tools: use template literal in error message

PR-URL: https://github.com/nodejs/node/pull/15846
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
v9.x-staging
Tim Chon 7 years ago
committed by James M Snell
parent
commit
a26c1bfac9
  1. 2
      tools/doc/generate.js

2
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}`);
}
}

Loading…
Cancel
Save