Browse Source

thrown exception when using an unsupported format

Benoît Merlet 12 years ago
parent
commit
4a3c419e74
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Composer/Command/LicensesCommand.php

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

@@ -92,8 +92,7 @@ EOT
                 break;
                 break;
 
 
             default:
             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));
         }
         }
     }
     }
 }
 }