Limit string length when reporting line error

This commit is contained in:
GPayne
2023-05-31 09:32:54 -06:00
parent ec11d3686c
commit 68b0b2fb10

View File

@@ -613,7 +613,7 @@ std::vector<Parameters> readSbdbFile(std::filesystem::path file) {
if (line != ExpectedHeader) {
throw ghoul::RuntimeError(fmt::format(
"Expected JPL SBDB file to start with '{}' but found '{}' instead",
ExpectedHeader, line
ExpectedHeader, line.substr(0, 100)
));
}