mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-27 07:18:57 -06:00
Fix bug causing the instrument times parser to only work in Debug mode
OBS: ghoul asserts are removed in Release mode. So don't put crucial statements that will have side effects in a ghoul assert. This is what caused the bug which is fixed in this commit.
This commit is contained in:
@@ -59,7 +59,9 @@ InstrumentTimesParser::InstrumentTimesParser(
|
||||
}
|
||||
|
||||
ghoul::Dictionary instruments;
|
||||
ghoul_assert(inputDict.getValue("Instruments", instruments), "Must define instruments");
|
||||
if (!inputDict.getValue("Instruments", instruments)) {
|
||||
throw std::runtime_error("Must define instruments");
|
||||
}
|
||||
|
||||
|
||||
_detectorType = "CAMERA"; //default value
|
||||
|
||||
Reference in New Issue
Block a user