Skip to content

Commit 5b5b5c0

Browse files
Tim ChonMylesBorins
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 65c5ff8 commit 5b5b5c0

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
@@ -68,6 +68,6 @@ function next(er, input) {
6868
break;
6969

7070
default:
71-
throw new Error('Invalid format: ' + format);
71+
throw new Error(`Invalid format: ${format}`);
7272
}
7373
}

0 commit comments

Comments
 (0)