Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ function checkRootPathForErrors (fastify, rootPath) {

function checkPath (fastify, rootPath) {
if (typeof rootPath !== 'string') {
throw new Error('"root" option must be a string')
throw new TypeError('"root" option must be a string')
}
if (path.isAbsolute(rootPath) === false) {
throw new Error('"root" option must be an absolute path')
Expand Down
Loading