From e7f39bc6b766f71d503d5ba010aab8a8512d04e9 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Wed, 17 Jun 2020 08:14:47 -0600 Subject: Propagate return value of auto-loaded command --- lib/framework.exp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/framework.exp b/lib/framework.exp index e6ce197..c9875d2 100644 --- a/lib/framework.exp +++ b/lib/framework.exp @@ -272,6 +272,9 @@ proc unknown args { } set exit_status 2 log_and_exit + } else { + # Propagate return value. + return $msg } } -- cgit v1.1