Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
fa3a72ba
Commit
fa3a72ba
authored
Jul 03, 2012
by
Thomas White
Browse files
Tweak error messages
parent
ac964c54
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/indexamajig.c
View file @
fa3a72ba
...
...
@@ -416,17 +416,18 @@ static void process_image(const struct index_args *iargs,
fd
=
open
(
outfile
,
O_WRONLY
);
if
(
fd
==
-
1
)
{
ERROR
(
"
Error on opening
\n
"
);
ERROR
(
"
Couldn't open output stream ('%s').
\n
"
,
outfile
);
exit
(
1
);
}
if
(
fcntl
(
fd
,
F_SETLKW
,
&
fl
)
==
-
1
)
{
ERROR
(
"
Error on setting lock wait
\n
"
);
ERROR
(
"
Couldn't get lock on output stream.
\n
"
);
exit
(
1
);
}
fh
=
fdopen
(
fd
,
"a"
);
if
(
fh
==
NULL
)
{
ERROR
(
"Couldn't open stream '%s'.
\n
"
,
outfilename
);
ERROR
(
"Couldn't fdopen() the output stream.
\n
"
);
exit
(
1
);
}
write_chunk
(
fh
,
&
image
,
hdfile
,
iargs
->
stream_flags
);
fflush
(
fh
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment