summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-01 09:06:07 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-01 09:06:07 +0200
commit0df97a5c5202bb765959df87861957ca2d4f301d (patch)
treed8e355e9648a8386e377746e8e07751c58e4219a
parentde48da0eb43e7b3893dca11d1f50928d5a412c1e (diff)
DocumentWidget: Error page of unknown status code
-rw-r--r--src/gmutil.c5
-rw-r--r--src/ui/documentwidget.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index 6a3b98de..557a82f8 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -217,9 +217,8 @@ static const struct {
217 { unknownStatusCode_GmStatusCode, /* keep this as the first one (fallback return value) */ 217 { unknownStatusCode_GmStatusCode, /* keep this as the first one (fallback return value) */
218 { 0x1f4ab, /* dizzy */ 218 { 0x1f4ab, /* dizzy */
219 "Unknown Status Code", 219 "Unknown Status Code",
220 "The server responded with a status code that is not specified in the Gemini " 220 "The server responded with a status code that is not in the Gemini specification. "
221 "protocol as known to this client. Maybe the server is from the future? Or " 221 "Maybe the server is from the future? Or just malfunctioning." } },
222 "just malfunctioning."} },
223 { failedToOpenFile_GmStatusCode, 222 { failedToOpenFile_GmStatusCode,
224 { 0x1f4c1, /* file folder */ 223 { 0x1f4c1, /* file folder */
225 "Failed to Open File", 224 "Failed to Open File",
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 1c325206..cca77c15 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1195,6 +1195,9 @@ static void checkResponse_DocumentWidget_(iDocumentWidget *d) {
1195 showErrorPage_DocumentWidget_( 1195 showErrorPage_DocumentWidget_(
1196 d, permanentFailure_GmStatusCode, &resp->meta); 1196 d, permanentFailure_GmStatusCode, &resp->meta);
1197 } 1197 }
1198 else {
1199 showErrorPage_DocumentWidget_(d, unknownStatusCode_GmStatusCode, &resp->meta);
1200 }
1198 break; 1201 break;
1199 } 1202 }
1200 } 1203 }