mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 04:49:12 -06:00
Limit string length when reporting line error
This commit is contained in:
@@ -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)
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user