diff --git a/devices/devices/observation_control.py b/devices/devices/observation_control.py index feaa9f0b937215e96dc897847fa2c94d286949c7..58464c5a8402e5145957df097cd0a03fc0fcdf40 100644 --- a/devices/devices/observation_control.py +++ b/devices/devices/observation_control.py @@ -284,8 +284,9 @@ class ObservationControl(Device): # Create the Observation device and instantiate it. self.create_dynamic_device(class_name, device_name) except DevFailed as ex: - self.error_stream("Cannot create the Observation device instance {} for ID={}. This means that the observation did not start.".format(device_name, id)) - return + error_string = "Cannot create the Observation device instance {} for ID={}. This means that the observation did not start.".format(device_name, id) + self.error_stream(error_string) + Except.re_throw_exception(ex, "DevFailed", error_string, __name__) try: # Instantiate a dynamic Tango Device "Observation".