Changeset 8228
- Timestamp:
- 04/03/08 13:30:30 (7 months ago)
- Files:
-
- branches/1.1/lib/yaml/sfYaml.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/yaml/sfYaml.class.php
r8155 r8228 61 61 if (function_exists('syck_load')) 62 62 { 63 $retval = syck_load($input); 63 try 64 { 65 $retval = syck_load($input); 66 } 67 catch (Exception $e) 68 { 69 throw new InvalidArgumentException(sprintf('Syck failed to parse %s, error was: "%s"', $file ? sprintf('file "%s"', $file) : 'string', $e->getMessage())); 70 } 64 71 65 72 return is_array($retval) ? $retval : array();