[project @ 2002-08-23 22:10:43 by sof]
authorsof <unknown>
Fri, 23 Aug 2002 22:10:43 +0000 (22:10 +0000)
committersof <unknown>
Fri, 23 Aug 2002 22:10:43 +0000 (22:10 +0000)
ioeGetErrorString: don't "show" the string from a user error.

Merge to STABLE.

System/IO/Error.hs

index fd92ee1..a34879b 100644 (file)
@@ -175,7 +175,7 @@ ioeGetHandle (IOException ioe) = ioe_handle ioe
 ioeGetHandle _ = error "System.IO.Error.ioeGetHandle: not an IO error"
 
 ioeGetErrorString (IOException ioe) 
-   | isUserErrorType (ioe_type ioe) = show (ioe_descr ioe)
+   | isUserErrorType (ioe_type ioe) = ioe_descr ioe
    | otherwise                      = show (ioe_type ioe)
 ioeGetErrorString _ = error "System.IO.Error.ioeGetErrorString: not an IO error"