diff --git a/lib/SimpleSAML/Module.php b/lib/SimpleSAML/Module.php
index a4a984d3e29764e637c4ab2df4ea2bc976355908..ef0d9d0d043cab0511982bb90a421d1d315d5697 100644
--- a/lib/SimpleSAML/Module.php
+++ b/lib/SimpleSAML/Module.php
@@ -138,7 +138,7 @@ class Module
                 return $moduleEnable[$module];
             }
 
-            throw new \Exception("Invalid module.enable value for for the module $module");
+            throw new \Exception("Invalid module.enable value for the '$module' module.");
         }
 
         if (assert_options(ASSERT_ACTIVE) &&