Skip to content
Snippets Groups Projects
Commit e61bf22c authored by ITC22366\local-study-admin's avatar ITC22366\local-study-admin
Browse files

improve error handling when restoring trial data of unfinished runs

parent 1b76d999
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,9 @@ void USFMultipleTrialDependentVariable::RecoverStudyResultsOfLine(const TArray<F
//so this is the right condition
//these should be in the right order, just double-check
check(FCString::Atoi(*Entries[Header.Find("Trial")]) == Values.size())
if (FCString::Atoi(*Entries[Header.Find("Trial")]) != Values.size()) {
FSFLoggingUtils::Log("Try to recover trial #" + Entries[Header.Find("Trial")] + " while already " + FString::FromInt(Values.size()) + " trial were recovered! (probably jumped back and forth in conditions, this must not happen in a correct run!", true);
}
std::vector<FString> Data;
for (const FString& SubName : SubVariableNames)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment