From 0f91e1b512fce2eafb268ead7e6a9cd60366f259 Mon Sep 17 00:00:00 2001 From: MrLuje Date: Fri, 30 Dec 2016 18:36:54 +0100 Subject: [PATCH] Fix directory doesn't exist in NugetV2 --- src/Paket.Core/NuGetV2.fs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Paket.Core/NuGetV2.fs b/src/Paket.Core/NuGetV2.fs index 97a1cb43fc..34c024c6b6 100644 --- a/src/Paket.Core/NuGetV2.fs +++ b/src/Paket.Core/NuGetV2.fs @@ -324,6 +324,8 @@ let fixArchive fileName = fixDatesInArchive fileName let findLocalPackage directory (packageName:PackageName) (version:SemVerInfo) = + if not <| Directory.Exists directory then + failwithf "The package %O %O can't be found in %s. (The directory doesn't exist.)%sPlease check the feed definition in your paket.dependencies file." packageName version directory Environment.NewLine let v1 = FileInfo(Path.Combine(directory, sprintf "%O.%O.nupkg" packageName version)) if v1.Exists then v1 else let normalizedVersion = version.Normalize()