Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Verified Commit d7a15330 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

bugfix completed bus simulation: in case either the generic or specific run...

bugfix completed bus simulation: in case either the generic or specific run has an error - copy the error message to the combined results
parent 6528cfb6
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,19 @@ namespace TUGraz.VectoCore.OutputData.XML
};
result.Status = generic.Status != VectoRun.Status.Success ? generic.Status : result.Status;
result.Status = specific.Status != VectoRun.Status.Success ? specific.Status : result.Status;
var errors = new List<string>();
var stacktraces = new List<string>();
if (generic.Status != VectoRun.Status.Success) {
errors.Add($"Generic simulation run: {generic.Error}");
stacktraces.Add($"Generic simulation run: {generic.StackTrace}");
}
if (specific.Status != VectoRun.Status.Success) {
errors.Add($"Specific simulation run: {specific.Error}");
stacktraces.Add($"Specific simulation run: {specific.StackTrace}");
}
result.Error = errors.Any() ? errors.Join(Environment.NewLine) : null;
result.StackTrace = stacktraces.Any() ? stacktraces.Join(Environment.NewLine) : null;
result.OVCMode = specific.OVCMode;
if (generic.OVCMode != specific.OVCMode)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment