From 177b486366a44e38538e33b5cd2ac1e9a141aee0 Mon Sep 17 00:00:00 2001 From: imarom Date: Thu, 11 Feb 2016 03:16:24 -0500 Subject: simulator bug and some YAMLs legacy field --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py') diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py index 71af88d0..357f54bd 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_sim.py @@ -143,9 +143,9 @@ class STLSim(object): try: profile = STLProfile.load(input_file) except STLError as e: - print format_text("\nError while loading profile '{0}'\n".format(input_file), 'bold') - print e.brief() + "\n" - return + s = format_text("\nError while loading profile '{0}'\n".format(input_file), 'bold') + s += "\n" + e.brief() + raise STLError(s) stream_list += profile.get_streams() -- cgit 1.2.3-korg