@@ -158,7 +158,7 @@ public function handleUpdate(Args $args)
158158
159159 if (!$ bindingToUpdate ->getContainingPackage () instanceof RootPackage) {
160160 throw new RuntimeException (sprintf (
161- 'Can only update bindings in package "%s". ' ,
161+ 'Can only update bindings in the package "%s". ' ,
162162 $ this ->packages ->getRootPackageName ()
163163 ));
164164 }
@@ -235,7 +235,10 @@ public function handleEnable(Args $args)
235235 $ bindingToEnable = $ this ->getBindingByUuidPrefix ($ args ->getArgument ('uuid ' ));
236236
237237 if ($ bindingToEnable ->getContainingPackage () instanceof RootPackage) {
238- throw new RuntimeException ('Cannot enable bindings in the root package. ' );
238+ throw new RuntimeException (sprintf (
239+ 'Cannot enable bindings in the package "%s". ' ,
240+ $ bindingToEnable ->getContainingPackage ()->getName ()
241+ ));
239242 }
240243
241244 $ this ->discoveryManager ->enableBinding ($ bindingToEnable ->getUuid ());
@@ -255,7 +258,10 @@ public function handleDisable(Args $args)
255258 $ bindingToDisable = $ this ->getBindingByUuidPrefix ($ args ->getArgument ('uuid ' ));
256259
257260 if ($ bindingToDisable ->getContainingPackage () instanceof RootPackage) {
258- throw new RuntimeException ('Cannot disable bindings in the root package. ' );
261+ throw new RuntimeException (sprintf (
262+ 'Cannot disable bindings in the package "%s". ' ,
263+ $ bindingToDisable ->getContainingPackage ()->getName ()
264+ ));
259265 }
260266
261267 $ this ->discoveryManager ->disableBinding ($ bindingToDisable ->getUuid ());
0 commit comments