diff --git a/src/Behat/Behat/Formatter/PrettyFormatter.php b/src/Behat/Behat/Formatter/PrettyFormatter.php
index <HASH>..<HASH> 100644
--- a/src/Behat/Behat/Formatter/PrettyFormatter.php
+++ b/src/Behat/Behat/Formatter/PrettyFormatter.php
@@ -703,7 +703,7 @@ class PrettyFormatter extends ProgressFormatter
             (!$exception instanceof UndefinedException || null === $snippet)) {
             $this->printStepException($exception, $color);
         }
-        if (null !== $snippet) {
+        if (null !== $snippet && $this->getParameter('snippets')) {
             $this->printStepSnippet($snippet);
         }
     }
print step snippets in HTML formatter only if they are enabled (closes #<I>)