Skip to content

Commit

Permalink
Improve visitInfo version exception, with test
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Apr 6, 2023
1 parent 7304ef7 commit 40862de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/image/VisitInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ class VisitInfoFactory : public table::io::PersistableFactory {
int version = getVersion(record);
if (version > SERIALIZATION_VERSION) {
throw LSST_EXCEPT(pex::exceptions::TypeError, "Cannot read VisitInfo FITS version > " +
std::to_string(SERIALIZATION_VERSION));
std::to_string(SERIALIZATION_VERSION) +
", found version " +
std::to_string(version) + " in file.");
}

// Version-dependent fields
Expand Down

0 comments on commit 40862de

Please sign in to comment.