Skip to content

Commit

Permalink
Merge pull request #86 from kartverket/newDifferentDatasetVersionExce…
Browse files Browse the repository at this point in the history
…ptionText

update exceptiontext to give more details
  • Loading branch information
Jarle Pedersen authored Oct 18, 2018
2 parents 04ae106 + b9e9c77 commit 8d82a0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public string OrderChangelog(int datasetId, long startIndex)
? client.OrderChangelog(order)
: client.OrderChangelog2(order, dataset.Version.Trim());

if(resp.changelogId == "-1") throw new Exception("Provider datasetVersion differs from subscriber.");
if (resp.changelogId == "-1") throw new Exception("Provider reports a datasetVersion that differs from that of the subscriber.\r\nThis may be due to several reasons.\r\nActions needed are emptying the local database, replacing the subscriber dataset with the new version from the provider and finally resynchronizing the dataset.");

dataset.AbortedChangelogId = resp.changelogId;
SubscriberDatasetManager.UpdateDataset(dataset);
Expand Down

0 comments on commit 8d82a0f

Please sign in to comment.