Преглед изворни кода

thrown exception when using an unsupported format

Benoît Merlet пре 12 година
родитељ
комит
4a3c419e74
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      src/Composer/Command/LicensesCommand.php

+ 1 - 2
src/Composer/Command/LicensesCommand.php

@@ -92,8 +92,7 @@ EOT
                 break;
 
             default:
-                $output->writeln(sprintf('Unsupported format "%s".  See help for supported formats.', $format));
-                break;
+                throw new \RuntimeException(sprintf('Unsupported format "%s".  See help for supported formats.', $format));
         }
     }
 }