1
0
Fork 0

Merge pull request #2549 from pulzarraider/downloader_types

List all available downloader types in exception message
pull/2562/head
Jordi Boggiano 2014-01-05 02:21:57 -08:00
commit 7683333515
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class DownloadManager
{
$type = strtolower($type);
if (!isset($this->downloaders[$type])) {
throw new \InvalidArgumentException('Unknown downloader type: '.$type);
throw new \InvalidArgumentException(sprintf('Unknown downloader type: %s. Available types: %s.', $type, implode(', ', array_keys($this->downloaders))));
}
return $this->downloaders[$type];