From 17cca08a0842e8784ea584214475cd0a1b4f4e5d Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 26 Jan 2005 12:23:33 +0000 Subject: [PATCH] [project @ 2005-01-26 12:23:33 by simonmar] I think InvalidArgument is more useful than OtherError for EBADF. --- Foreign/C/Error.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foreign/C/Error.hs b/Foreign/C/Error.hs index 74d4e1a..ac26141 100644 --- a/Foreign/C/Error.hs +++ b/Foreign/C/Error.hs @@ -472,7 +472,7 @@ errnoToIOError loc errno maybeHdl maybeName = unsafePerformIO $ do | errno == eAFNOSUPPORT = UnsupportedOperation | errno == eAGAIN = ResourceExhausted | errno == eALREADY = AlreadyExists - | errno == eBADF = OtherError + | errno == eBADF = InvalidArgument | errno == eBADMSG = InappropriateType | errno == eBADRPC = OtherError | errno == eBUSY = ResourceBusy -- 1.7.10.4