Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
90449914
Commit
90449914
authored
Feb 24, 2009
by
Niels Möller
Browse files
(die, werror, process_request): Improved
error messages. Rev: src/lshd-pty-helper.c:1.14
parent
e95988a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lshd-pty-helper.c
View file @
90449914
...
...
@@ -93,6 +93,7 @@ static void
die
(
const
char
*
format
,
...)
{
va_list
args
;
fprintf
(
stderr
,
"lshd-pty-helper: "
);
va_start
(
args
,
format
);
vfprintf
(
stderr
,
format
,
args
);
va_end
(
args
);
...
...
@@ -111,6 +112,7 @@ static void
werror
(
const
char
*
format
,
...)
{
va_list
args
;
fprintf
(
stderr
,
"lshd-pty-helper: "
);
va_start
(
args
,
format
);
vfprintf
(
stderr
,
format
,
args
);
va_end
(
args
);
...
...
@@ -665,7 +667,8 @@ process_request(struct pty_state *state,
break
;
}
if
(
response
->
header
.
type
)
werror
(
"Request failed: %s
\n
"
,
STRERROR
(
response
->
header
.
type
));
werror
(
"Request of type %d failed: %s
\n
"
,
request
->
header
.
type
,
STRERROR
(
response
->
header
.
type
));
}
int
...
...
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