We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 997a6db commit ca555e7Copy full SHA for ca555e7
index.js
@@ -443,7 +443,7 @@ function checkRootPathForErrors (fastify, rootPath) {
443
444
function checkPath (fastify, rootPath) {
445
if (typeof rootPath !== 'string') {
446
- throw new Error('"root" option must be a string')
+ throw new TypeError('"root" option must be a string')
447
}
448
if (path.isAbsolute(rootPath) === false) {
449
throw new Error('"root" option must be an absolute path')
0 commit comments