Skip to content

Commit 917ccc9

Browse files
Tim Chontargos
Tim Chon
authored andcommitted
tools: use template literal in error message
PR-URL: #15846 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent f1c30aa commit 917ccc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/generate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ function next(er, input) {
8989
break;
9090

9191
default:
92-
throw new Error('Invalid format: ' + format);
92+
throw new Error(`Invalid format: ${format}`);
9393
}
9494
}

0 commit comments

Comments
 (0)