Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
0b59de61
Commit
0b59de61
authored
Jun 24, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue 10 -- make capnpc print error message when input file does not exist.
parent
83d30c2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Main.hs
compiler/src/Main.hs
+4
-2
No files found.
compiler/src/Main.hs
View file @
0b59de61
...
...
@@ -151,7 +151,7 @@ main = do
hPutStr
stderr
"IDs (16-digit hex strings prefixed with @0x) must be unique. Sorry I'm not
\n\
\
able to be more specific about where the duplicates were seen, but it should
\n\
\
be easy enough to grep, right?"
\
be easy enough to grep, right?
\n
"
exitFailure
)
mapM_
(
doOutput
requestedFiles
srcPrefixes
schema
schemaMap
)
outputs
...
...
@@ -301,7 +301,9 @@ handleFile isVerbose searchPath filename = do
result
<-
importFile
isVerbose
searchPath
filename
case
result
of
Right
_
->
return
Nothing
Right
e
->
do
liftIO
$
hPutStr
stderr
(
e
++
"
\n
"
)
return
Nothing
Left
desc
->
return
$
Just
desc
doOutput
requestedFiles
srcPrefixes
schema
schemaMap
output
=
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment