Explorar el Código

thrown exception when using an unsupported format

Benoît Merlet hace 12 años
padre
commit
4a3c419e74
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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));
         }
     }
 }