VTY: Fix warning: control reaches end of non-void function
Change-Id: Ie9415afecbcaf12e210fd4f481fcbb1f5ba52c77
diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn
index 9410c9e..49f587d 100644
--- a/library/Osmocom_VTY_Functions.ttcn
+++ b/library/Osmocom_VTY_Functions.ttcn
@@ -10,6 +10,8 @@
*/
module Osmocom_VTY_Functions {
+
+ import from Misc_Helpers all;
import from TELNETasp_PortType all;
import from Osmocom_Types all;
@@ -218,9 +220,10 @@
num_attempts := num_attempts - 1;
}
- setverdict(fail, "No matching VTY response for regular expression '", regex,
- "' after ", num_attempts, " attempts." );
- mtc.stop;
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
+ log2str("No matching VTY response for regular expression '",
+ regex, "' after ", num_attempts, " attempts." ));
+ return "";
}
}