Changeset 2936 for src/Pugs/Prim.hs

Show
Ignore:
Timestamp:
05/10/05 19:29:59 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
4498
Message:

* PGE parsefails no longer fatal.
* fix rules.t so it largely runs. don't enable it yet!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim.hs

    r2935 r2936  
    760760    case rv of 
    761761        Just m  -> fromVal (matchToVal m) 
    762         Nothing -> fail ("Cannot parse PGE: " ++ pge) 
     762        Nothing -> do 
     763            liftIO $ putStrLn ("*** Cannot parse PGE: " ++ re ++ "\n*** Error: " ++ pge) 
     764            return mkMatchFail 
    763765 
    764766doMatch cs MkRulePCRE{ rxRegex = re } = do