From 091e2c728f8cfe2712f2a2bab241abb3ccfbf7d9 Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 15 Mar 2016 09:25:55 -0700 Subject: [PATCH 1/2] Updated message when paket.dependencies cannot be found --- src/Paket.Core/PublicAPI.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paket.Core/PublicAPI.fs b/src/Paket.Core/PublicAPI.fs index e4b9db1e5c..0179c5e104 100644 --- a/src/Paket.Core/PublicAPI.fs +++ b/src/Paket.Core/PublicAPI.fs @@ -45,7 +45,7 @@ type Dependencies(dependenciesFileName: string) = match parent with | null -> if withError then - failwithf "Could not find '%s'. To use Paket with this solution, please run 'paket init' first." Constants.DependenciesFileName + failwithf "Could not find '%s'. To use Paket with this solution, please run 'paket init' first.\nIf you have already run 'packet.init' then ensure that '%s' is located in the source directory.\nLike this:\nMySourceDir\n .paket\n paket.dependencies" Constants.DependenciesFileName Constants.DependenciesFileName else Constants.DependenciesFileName | _ -> findInPath(parent, withError) From 6be52a9c9b5e6f1bca77fe6fa1545a1cfdfb2e8e Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 15 Mar 2016 11:01:12 -0700 Subject: [PATCH 2/2] Fixed paket misspelling in message --- src/Paket.Core/PublicAPI.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paket.Core/PublicAPI.fs b/src/Paket.Core/PublicAPI.fs index 0179c5e104..79f79904c8 100644 --- a/src/Paket.Core/PublicAPI.fs +++ b/src/Paket.Core/PublicAPI.fs @@ -45,7 +45,7 @@ type Dependencies(dependenciesFileName: string) = match parent with | null -> if withError then - failwithf "Could not find '%s'. To use Paket with this solution, please run 'paket init' first.\nIf you have already run 'packet.init' then ensure that '%s' is located in the source directory.\nLike this:\nMySourceDir\n .paket\n paket.dependencies" Constants.DependenciesFileName Constants.DependenciesFileName + failwithf "Could not find '%s'. To use Paket with this solution, please run 'paket init' first.\nIf you have already run 'paket.init' then ensure that '%s' is located in the source directory.\nLike this:\nMySourceDir\n .paket\n paket.dependencies" Constants.DependenciesFileName Constants.DependenciesFileName else Constants.DependenciesFileName | _ -> findInPath(parent, withError)