From 4a3c419e74916a601eb64db783cae57b0804d752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Merlet?= Date: Mon, 15 Jul 2013 15:24:47 +0200 Subject: [PATCH] thrown exception when using an unsupported format --- src/Composer/Command/LicensesCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/Command/LicensesCommand.php b/src/Composer/Command/LicensesCommand.php index 73adb4451..28f584c66 100644 --- a/src/Composer/Command/LicensesCommand.php +++ b/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)); } } }