Skip to content

Commit

Permalink
Merge branch 'hotfix-4.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons committed Aug 12, 2014
2 parents 581eee9 + 218f845 commit c94ba27
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static void VerifyConnectionToRavenDBServer(IDocumentStore store)
return;
}

if (!ravenBuildInfo.IsVersion2OrHigher())
if (!ravenBuildInfo.IsVersion2O())
{
throw new InvalidOperationException(string.Format(WrongRavenVersionMessage, ravenBuildInfo));
}
Expand Down Expand Up @@ -331,7 +331,7 @@ static void ShowUncontactableRavenWarning(IDocumentStore store,Exception excepti
static Action<IDocumentStore> customisationCallback = store => { };

const string WrongRavenVersionMessage =
@"The RavenDB server you have specified is detected to be {0}. NServiceBus requires RavenDB version 2 or higher to operate correctly. Please update your RavenDB server.
@"The RavenDB server you have specified is detected to be {0}. NServiceBus requires RavenDB version 2.0 to operate correctly. Please update your RavenDB server.
Further instructions can be found at:http://particular.net/articles/using-ravendb-in-nservicebus-installing";

Expand Down Expand Up @@ -359,9 +359,9 @@ class RavenBuildInfo

public string BuildVersion { get; set; }

public bool IsVersion2OrHigher()
public bool IsVersion2O()
{
return !string.IsNullOrEmpty(ProductVersion) && !ProductVersion.StartsWith("1");
return !string.IsNullOrEmpty(ProductVersion) && ProductVersion.StartsWith("2.0");
}

public override string ToString()
Expand Down

0 comments on commit c94ba27

Please sign in to comment.