mirror of https://github.com/omar-polo/gmid.git
gg: prepend "Server says" to the reply code
This commit is contained in:
parent
7980a5d2a8
commit
e8b2d8e3f0
1
gg.c
1
gg.c
|
@ -308,6 +308,7 @@ get(const char *r)
|
||||||
assert(t != NULL);
|
assert(t != NULL);
|
||||||
if (code < 20 || code >= 30) {
|
if (code < 20 || code >= 30) {
|
||||||
*t = '\0';
|
*t = '\0';
|
||||||
|
fprintf(stderr, "Server says: ");
|
||||||
safeprint(stderr, buf + 3); /* skip return code */
|
safeprint(stderr, buf + 3); /* skip return code */
|
||||||
}
|
}
|
||||||
t += 2; /* skip \r\n */
|
t += 2; /* skip \r\n */
|
||||||
|
|
Loading…
Reference in New Issue