Changeset 7826 for src/Pugs/Prim/Yaml.hs

Show
Ignore:
Timestamp:
11/03/05 23:33:52 (3 years ago)
Author:
autrijus
Message:

* r0nny reported the YAML error messages are reported as if they are Pugs errors, which is very confusing when 'syntax error' occurs. Fix it by prefixing hte error with 'YAML Parse Error: ' for now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/Yaml.hs

    r7579 r7826  
    1616    rv      <- liftIO (parseYaml $ encodeUTF8 str) 
    1717    case rv of 
    18         Left err            -> fail err 
     18        Left err            -> fail $ "YAML Parse Error: " ++ err 
    1919        Right Nothing       -> return undef 
    2020        Right (Just node)   -> fromYaml node