diff --git a/src/Composer/Command/DependsCommand.php b/src/Composer/Command/DependsCommand.php
index 0fb524117..d38c3d9db 100644
--- a/src/Composer/Command/DependsCommand.php
+++ b/src/Composer/Command/DependsCommand.php
@@ -130,7 +130,11 @@ EOT
sort($messages);
$io->write($messages);
} else {
- $io->writeError('There is no installed package depending on "'.$needle.'".');
+ $matchText = '';
+ if ($input->getOption('match-constraint') !== '*') {
+ $matchText = ' in versions '.($matchInvert ? 'not ':'').'matching ' . $input->getOption('match-constraint');
+ }
+ $io->writeError('There is no installed package depending on "'.$needle.'"'.$matchText.'.');
}
}
}