summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2016-03-31 19:50:54 -0400
committerJon Pugh2016-03-31 19:50:54 -0400
commitf794cf521162777c311896a6c3c4d7a7c1d704e2 (patch)
treef9de9335e72990b175c9ffa7320b5b9ef7a14862
parent8bd1fafd588768470a66acc047fdf28fb10bb94d (diff)
Issue #2698125: Report the expected service class in the drush errors when it is missing7.x-3.x-reveal-service-class
-rw-r--r--Provision/Context/server.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Provision/Context/server.php b/Provision/Context/server.php
index 0e17be1..b640b83 100644
--- a/Provision/Context/server.php
+++ b/Provision/Context/server.php
@@ -103,7 +103,7 @@ class Provision_Context_server extends Provision_Context {
$this->setProperty($type_option, $type);
}
else {
- drush_log("Unable to load $type driver for the $service service", 'error');
+ drush_log("Unable to load $type driver for the $service service: Expecting class $className", 'error');
}
}
else {
@@ -116,6 +116,7 @@ class Provision_Context_server extends Provision_Context {
* Retrieve a service of a specific type from the context.
*/
function service($service, $name = null) {
+
$this->services[$service]->setContext(($name) ? $name : $this->name);
return $this->services[$service];
}