From 0df97a5c5202bb765959df87861957ca2d4f301d Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 1 Dec 2020 09:06:07 +0200 Subject: DocumentWidget: Error page of unknown status code --- src/gmutil.c | 5 ++--- src/ui/documentwidget.c | 3 +++ 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 { { unknownStatusCode_GmStatusCode, /* keep this as the first one (fallback return value) */ { 0x1f4ab, /* dizzy */ "Unknown Status Code", - "The server responded with a status code that is not specified in the Gemini " - "protocol as known to this client. Maybe the server is from the future? Or " - "just malfunctioning."} }, + "The server responded with a status code that is not in the Gemini specification. " + "Maybe the server is from the future? Or just malfunctioning." } }, { failedToOpenFile_GmStatusCode, { 0x1f4c1, /* file folder */ "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) { showErrorPage_DocumentWidget_( d, permanentFailure_GmStatusCode, &resp->meta); } + else { + showErrorPage_DocumentWidget_(d, unknownStatusCode_GmStatusCode, &resp->meta); + } break; } } -- cgit v1.2.3