diff --git a/appveyor.yml b/appveyor.yml index 75bac98..afa1742 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,7 +3,7 @@ skip_tags: true image: Visual Studio 2015 configuration: Release install: - - mklink /J Data "test/Mime-Detective.Tests/Data" + - mklink /J Data "test/GenericMvc.Tests/Data/FileRepo" - ps: mkdir -Force ".\build\" | Out-Null - ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1" -OutFile ".\build\installcli.ps1" - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetcli" diff --git a/src/GenericMvc/Repositories/FileRepository.cs b/src/GenericMvc/Repositories/FileRepository.cs index 9ba30b2..69f3263 100644 --- a/src/GenericMvc/Repositories/FileRepository.cs +++ b/src/GenericMvc/Repositories/FileRepository.cs @@ -75,7 +75,7 @@ public FileRepository(string rootFolder, bool includeNestedDirectories = false) { //check if folder exists here if (!System.IO.Directory.Exists(rootFolder)) - throw new System.IO.DirectoryNotFoundException(rootFolder); + throw new System.IO.DirectoryNotFoundException($"Directory:{rootFolder}, Current Directory {System.IO.Directory.GetCurrentDirectory()}"); this.RootFolder = rootFolder;