File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/PHPCR/Shell/Subscriber Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 66use PHPCR \Shell \Event \CommandExceptionEvent ;
77use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
88use PHPCR \Shell \Event \PhpcrShellEvents ;
9+ use PHPCR \UnsupportedRepositoryOperationException ;
910
1011/**
1112 * Try and better handle exceptions
@@ -26,6 +27,10 @@ public function handleException(CommandExceptionEvent $event)
2627 $ exception = $ event ->getException ();
2728 $ output = $ event ->getOutput ();
2829
30+ if ($ exception instanceof UnsupportedRepositoryOperationException) {
31+ $ output ->writeln ('<error>Unsupported repository operation: This repository is not capable of performing the requested action</error> ' );
32+ }
33+
2934 if ($ exception instanceof NotImplementedException) {
3035 $ output ->writeln ('<error>Not implemented: ' . $ exception ->getMessage () . '</error> ' );
3136 }
You can’t perform that action at this time.
0 commit comments