Skip to content

Commit

Permalink
[Yaml][Parser] changes according review
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Jan 13, 2012
1 parent efce640 commit 7961014
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Symfony/Component/Yaml/Yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ static public function parse($input)
// if input is a file, process it
if (strpos($input, "\n") === false && is_file($input)) {
if (false === is_readable($input)) {
throw new \InvalidArgumentException(sprintf(
'The service file "%s" is not readable.',
$input
));
throw new ParseException(sprintf('Unable to parse "%s" as the file is not readable.', $input));
}

$file = $input;
Expand Down

0 comments on commit 7961014

Please sign in to comment.