Skip to content

Commit

Permalink
Add more helpful error message
Browse files Browse the repository at this point in the history
for untreated assertions
  • Loading branch information
lochel committed Oct 13, 2015
1 parent 9365264 commit cea00ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimulationRuntime/c/simulation/simulation_omc_assert.c
Expand Up @@ -96,7 +96,8 @@ static void va_omc_assert_simulation_withEquationIndexes(threadData_t *threadDat
break;
case ERROR_OPTIMIZE:
default:
throwStreamPrint(threadData,"Unhandled Assertion-Error");
va_errorStreamPrintWithEquationIndexes(LOG_ASSERT, 0, indexes, msg, args);
throwStreamPrint(threadData, "Untreated assertion has been detected.");
}
}

Expand Down

0 comments on commit cea00ab

Please sign in to comment.