RunOpenEMS will now propagate errors from openems.exe, instead of silently failing

This commit is contained in:
Andreas Pfau 2019-05-19 22:06:14 +02:00
parent e2d31ecf5d
commit b3072c687b

View File

@ -44,4 +44,9 @@ else
command = [command ' > ' logfile ' 2>&1'];
end
system(command);
[exitcode, shelloutput] = system(command);
if (exitcode~=0);
disp(shelloutput);
error(['openEMS binary exited with error-code ' num2str(exitcode)]);
end