Commit 90449914 authored by Niels Möller's avatar Niels Möller

(die, werror, process_request): Improved

error messages.

Rev: src/lshd-pty-helper.c:1.14
parent e95988a4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment