FluidNMFMatch: Fix crash in event of invalid arguments and early exit from contsructor (set calc to ClearUnitOutputs, and ensure that error message actually gets printed)

nix
Owen Green 7 years ago
parent 9d0da00842
commit f834457794

@ -38,7 +38,10 @@ namespace nmf{
std::tie(isOK, feedback) = mClient->sanityCheck(); std::tie(isOK, feedback) = mClient->sanityCheck();
if(!isOK) if(!isOK)
{ {
Print("fdNMFMatch Error: %s",feedback.c_str()); std::cout << "FluidNMFMatch Error: " << feedback << '\n';
mCalcFunc = ClearUnitOutputs;
return; return;
} }

Loading…
Cancel
Save