Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alexbiehl-gc
GHC
Commits
405c1bb4
Commit
405c1bb4
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-08-14 13:06:56 by sof]
Better error messages
parent
1a8ef592
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ghc/lib/posix/PosixDB.lhs
+4
-4
4 additions, 4 deletions
ghc/lib/posix/PosixDB.lhs
ghc/lib/posix/PosixFiles.lhs
+3
-3
3 additions, 3 deletions
ghc/lib/posix/PosixFiles.lhs
with
7 additions
and
7 deletions
ghc/lib/posix/PosixDB.lhs
+
4
−
4
View file @
405c1bb4
...
...
@@ -46,7 +46,7 @@ getGroupEntryForID gid =
_ccall_ getgrgid gid >>= \ ptr ->
if ptr == (``NULL'' :: Addr) then
fail (IOError Nothing NoSuchThing
"getGroupEntryForID
:
no such group entry")
"getGroupEntryForID
" "
no such group entry")
else
unpackGroupEntry ptr
...
...
@@ -56,7 +56,7 @@ getGroupEntryForName name =
_ccall_ getgrnam gname >>= \ ptr ->
if ptr == (``NULL'' :: Addr) then
fail (IOError Nothing NoSuchThing
"getGroupEntryForName
:
no such group entry")
"getGroupEntryForName
" "
no such group entry")
else
unpackGroupEntry ptr
...
...
@@ -65,7 +65,7 @@ getUserEntryForID uid =
_ccall_ getpwuid uid >>= \ ptr ->
if ptr == ``NULL'' then
fail (IOError Nothing NoSuchThing
"getUserEntryForID
:
no such user entry")
"getUserEntryForID
" "
no such user entry")
else
unpackUserEntry ptr
...
...
@@ -75,7 +75,7 @@ getUserEntryForName name =
_ccall_ getpwnam uname >>= \ ptr ->
if ptr == ``NULL'' then
fail (IOError Nothing NoSuchThing
"getUserEntryForName
:
no such user entry")
"getUserEntryForName
" "
no such user entry")
else
unpackUserEntry ptr
\end{code}
...
...
This diff is collapsed.
Click to expand it.
ghc/lib/posix/PosixFiles.lhs
+
3
−
3
View file @
405c1bb4
...
...
@@ -128,7 +128,7 @@ readDirStream dirp = do
else do
errno <- getErrorCode
if errno == noError
then fail (IOError Nothing EOF "EOF")
then fail (IOError Nothing EOF
"readDirStream"
"EOF")
else syserr "readDirStream"
rewindDirStream :: DirStream -> IO ()
...
...
@@ -529,7 +529,7 @@ pathconf n name = do
else do
errno <- getErrorCode
if errno == invalidArgument
then fail (IOError Nothing NoSuchThing "
PosixFiles.
getPathVar
:
no such path limit or option")
then fail (IOError Nothing NoSuchThing "getPathVar
" "
no such path limit or option")
else syserr "PosixFiles.getPathVar"
...
...
@@ -553,7 +553,7 @@ fpathconf n fd = do
else do
errno <- getErrorCode
if errno == invalidArgument
then fail (IOError Nothing NoSuchThing "getFileVar
:
no such path limit or option")
then fail (IOError Nothing NoSuchThing "getFileVar
" "
no such path limit or option")
else syserr "getFileVar"
\end{code}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment