From 89a7e89cba543e495079c0ca2d49bb3397c0861a Mon Sep 17 00:00:00 2001 From: sof Date: Fri, 23 Aug 2002 22:10:43 +0000 Subject: [PATCH] [project @ 2002-08-23 22:10:43 by sof] ioeGetErrorString: don't "show" the string from a user error. Merge to STABLE. --- System/IO/Error.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/IO/Error.hs b/System/IO/Error.hs index fd92ee1..a34879b 100644 --- a/System/IO/Error.hs +++ b/System/IO/Error.hs @@ -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" -- 1.7.10.4