RunOpenEMS will now propagate errors from openems.exe, instead of silently failing
This commit is contained in:
parent
e2d31ecf5d
commit
b3072c687b
@ -44,4 +44,9 @@ else
|
|||||||
command = [command ' > ' logfile ' 2>&1'];
|
command = [command ' > ' logfile ' 2>&1'];
|
||||||
end
|
end
|
||||||
|
|
||||||
system(command);
|
|
||||||
|
[exitcode, shelloutput] = system(command);
|
||||||
|
if (exitcode~=0);
|
||||||
|
disp(shelloutput);
|
||||||
|
error(['openEMS binary exited with error-code ' num2str(exitcode)]);
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user