diff --git a/src/Symfony/Components/DependencyInjection/Builder.php b/src/Symfony/Components/DependencyInjection/Builder.php
index <HASH>..<HASH> 100644
--- a/src/Symfony/Components/DependencyInjection/Builder.php
+++ b/src/Symfony/Components/DependencyInjection/Builder.php
@@ -440,11 +440,11 @@ class Builder extends Container
       }
       else
       {
-        $replaceParameter = function ($match) use ($parameters)
+        $replaceParameter = function ($match) use ($parameters, $value)
         {
           if (!array_key_exists($name = strtolower($match[2]), $parameters))
           {
-            throw new \RuntimeException(sprintf('The parameter "%s" must be defined.', $name));
+            throw new \RuntimeException(sprintf('The parameter "%s" must be defined (used in the following expression: "%s").', $name, $value));
           }
 
           return $parameters[$name];
[DependencyInjection] tweaked an error message to ease debugging