Skip to content

Commit

Permalink
Don't suggest to allow prereleases if we already have that.
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Aug 13, 2015
1 parent ee7f06a commit f44c861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Paket.Core/PackageResolver.fs
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ let Resolve(getVersionsF, getPackageDetailsF, globalFrameworkRestrictions, rootD
!availableVersions

String.Join(Environment.NewLine + " - ",List.sortDescending versions)
failwithf "Could not find compatible versions for top level dependency:%s %A%s Available versions:%s - %s%s Try to relax the dependency or allow prereleases."
failwithf "Could not find compatible versions for top level dependency:%s %A%s Available versions:%s - %s%s Try to relax the dependency%s."
Environment.NewLine (String.Join(Environment.NewLine + " ", currentRequirements |> Seq.map string)) Environment.NewLine Environment.NewLine versionText Environment.NewLine
(if currentRequirement.VersionRequirement.PreReleases = PreReleaseStatus.No then " or allow prereleases" else "")
else
// boost the conflicting package, in order to solve conflicts faster
match conflictHistory.TryGetValue(NormalizedPackageName currentRequirement.Name) with
Expand Down

0 comments on commit f44c861

Please sign in to comment.