summaryrefslogtreecommitdiff
path: root/src/gopher.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-02 17:06:55 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-02 17:06:55 +0300
commitd6d3cfd9c1a16172bdcb8cbe8e09e77212f7094c (patch)
tree96c93c432594266eed45f61e75b7610e160e075c /src/gopher.c
parent15e2226518f3ec79c5262168cd37e92bb0caa35d (diff)
Gopher: Verbose content parsing errors
IssueID #258
Diffstat (limited to 'src/gopher.c')
-rw-r--r--src/gopher.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gopher.c b/src/gopher.c
index 7099d5bc..708b2ee8 100644
--- a/src/gopher.c
+++ b/src/gopher.c
@@ -78,6 +78,7 @@ static iBool convertSource_Gopher_(iGopher *d) {
78 } 78 }
79 if (line.end >= body.end - 1 || !isLineTerminator_(line.end)) { 79 if (line.end >= body.end - 1 || !isLineTerminator_(line.end)) {
80 /* Not a complete line. */ 80 /* Not a complete line. */
81 printf("[Gopher] unterminated: {%s}\n", cstr_Rangecc(line));
81 break; 82 break;
82 } 83 }
83 body.start = line.end + 2; 84 body.start = line.end + 2;
@@ -139,6 +140,9 @@ static iBool convertSource_Gopher_(iGopher *d) {
139 } 140 }
140 delete_String(buf); 141 delete_String(buf);
141 } 142 }
143 else {
144 printf("[Gopher] unrecognized: {%s}\n", cstr_Rangecc(line));
145 }
142 } 146 }
143 iRelease(pattern); 147 iRelease(pattern);
144 remove_Block(&d->source, 0, body.start - constBegin_Block(&d->source)); 148 remove_Block(&d->source, 0, body.start - constBegin_Block(&d->source));