Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[Yaml][Parser] changes according review

  • Loading branch information...
commit 5a83afdb51c116320b0e41b9f1265eabc5605f27 1 parent 7555587
Maksim Kotlyar authored January 13, 2012

Showing 1 changed file with 1 addition and 4 deletions. Show diff stats Hide diff stats

  1. 5  Yaml.php
5  Yaml.php
@@ -49,10 +49,7 @@ static public function parse($input)
49 49
         // if input is a file, process it
50 50
         if (strpos($input, "\n") === false && is_file($input)) {
51 51
             if (false === is_readable($input)) {
52  
-                throw new \InvalidArgumentException(sprintf(
53  
-                    'The service file "%s" is not readable.',
54  
-                    $input
55  
-                ));
  52
+                throw new ParseException(sprintf('Unable to parse "%s" as the file is not readable.', $input));
56 53
             }
57 54
 
58 55
             $file = $input;

0 notes on commit 5a83afd

Please sign in to comment.
Something went wrong with that request. Please try again.