Revert "Do not use a previous exception here."
authorGunnar Wrobel <p@rdus.de>
Tue, 11 Jan 2011 19:49:49 +0000 (20:49 +0100)
committerGunnar Wrobel <p@rdus.de>
Tue, 11 Jan 2011 19:49:49 +0000 (20:49 +0100)
This reverts commit c40cb561e1dbe6ebc936891af616ef2569aacf00.

framework/Injector/lib/Horde/Injector/DependencyFinder.php

index e73f4ba..82b0f86 100644 (file)
@@ -30,7 +30,7 @@ class Horde_Injector_DependencyFinder
                 $dependencies[] = $this->getParameterDependency($injector, $parameter);
             }
         } catch (Horde_Injector_Exception $e) {
-            throw new Horde_Injector_Exception("$method has unfulfilled dependencies (parameter: $parameter, error: $e->getMessage())", 0);
+            throw new Horde_Injector_Exception("$method has unfulfilled dependencies ($parameter)", 0, $e);
         }
 
         return $dependencies;