aboutsummaryrefslogtreecommitdiff
path: root/gg.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-10-18 17:15:03 +0000
committerOmar Polo <op@omarpolo.com>2023-10-18 17:15:03 +0000
commite8b2d8e3f029da1e903ffc81d7a1d7b1317e16f4 (patch)
tree5e499501989086512c92ea576e2871cfc6b02525 /gg.c
parent7980a5d2a8e3c3db8ce3cd9b7a2151936faeb325 (diff)
gg: prepend "Server says" to the reply code
Diffstat (limited to 'gg.c')
-rw-r--r--gg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gg.c b/gg.c
index 623d2ea..9dfd826 100644
--- a/gg.c
+++ b/gg.c
@@ -308,6 +308,7 @@ get(const char *r)
assert(t != NULL);
if (code < 20 || code >= 30) {
*t = '\0';
+ fprintf(stderr, "Server says: ");
safeprint(stderr, buf + 3); /* skip return code */
}
t += 2; /* skip \r\n */