Changeset 2358 for src/Main.hs

Show
Ignore:
Timestamp:
04/26/05 15:14:11 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
3900
Message:

* much better error messages overall.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Main.hs

    r2320 r2358  
    201201    runProgramWith (\e -> e{ envDebug = Nothing }) end 
    202202    where 
    203     end (VError str exp)  = do 
    204         hPutStrLn stderr str 
    205         hPutStrLn stderr (show exp) 
     203    end err@(VError _ _)  = do 
     204        hPutStrLn stderr (pretty err) 
    206205        exitFailure 
    207206    end (VControl (ControlExit exit)) = exitWith exit