Skip to content

Commit

Permalink
specify last known SO version
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed May 11, 2020
1 parent af102af commit 6e25296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ describe('DocumentMigrator', () => {
migrationVersion: { dog: '10.2.0' },
})
).toThrow(
/Document "smelly" has property "dog" which belongs to a more recent version of Kibana \(10\.2\.0\)/i
/Document "smelly" has property "dog" which belongs to a more recent version of Kibana \[10\.2\.0\]\. The last known version is \[undefined\]/i
);
});

Expand All @@ -315,7 +315,7 @@ describe('DocumentMigrator', () => {
migrationVersion: { dawg: '1.2.4' },
})
).toThrow(
/Document "fleabag" has property "dawg" which belongs to a more recent version of Kibana \(1\.2\.4\)/i
/Document "fleabag" has property "dawg" which belongs to a more recent version of Kibana \[1\.2\.4\]\. The last known version is \[1\.2\.3\]/i
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function nextUnmigratedProp(doc: SavedObjectUnsanitizedDoc, migrations: ActiveMi
if (docVersion && (!latestVersion || Semver.gt(docVersion, latestVersion))) {
throw Boom.badData(
`Document "${doc.id}" has property "${p}" which belongs to a more recent` +
` version of Kibana (${docVersion}).`,
` version of Kibana [${docVersion}]. The last known version is [${latestVersion}]`,
doc
);
}
Expand Down

0 comments on commit 6e25296

Please sign in to comment.