From a5326996b0e4d27db1d86d115cc6c50e99cead83 Mon Sep 17 00:00:00 2001
From: Christian Engwer <christi@dune-project.org>
Date: Mon, 6 Aug 2012 09:38:04 +0000
Subject: [PATCH] [dunecontrol] improve error message for invalid module names

[[Imported from SVN: r6881]]
---
 lib/dunemodules.lib | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/dunemodules.lib b/lib/dunemodules.lib
index f8c865269..f16ad8944 100644
--- a/lib/dunemodules.lib
+++ b/lib/dunemodules.lib
@@ -278,10 +278,12 @@ _check_deps()
   local report="ERROR"
   local requires="requires"
   local required="required"
+  local dependency="dependency"
   if test "x$mode" = "xSUGS"; then
     report="WARNING"
     requires="suggests"
     required="suggested"
+    dependency="suggestion"
   fi
   eval deps=\$${mode}_$module
   #initially remove leading space
@@ -305,7 +307,7 @@ _check_deps()
     deps=`echo ${deps//^[, ]}`
     dep=$(fix_variable_name $name)
     if ! check_modname $dep; then
-      echo "ERROR: invalid module name $name" >&2
+      echo "ERROR: invalid module name $name ($dependency of $module)" >&2
       exit 1
     fi
     if eval test x\$HAVE_$dep != "x"; then
-- 
GitLab