Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.
Open
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
4 changes: 2 additions & 2 deletions src/public/Set-NancyRoot.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ function Set-NancyRoot {
[string]$Path
)
process {
$ResolvedPath = Resolve-Path $Path -PathType Container -ErrorAction Stop
$ResolvedPath = Resolve-Path $Path -ErrorAction Stop
if($ResolvedPath.Provider.Name -ne "FileSystem")
{
throw "The Nancy root must be a folder path that exists on the FileSystem"
}

[NancyPS.StaticBootstrapper]::RootPath = $ResolvedPath.Path
}
}
}