diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-20 21:26:39 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-20 21:26:39 +0300 |
commit | 548034e167bd94d21ef9bcc2e6d2d8cbfaeb3d06 (patch) | |
tree | fb5bf6c4773385e2efa6dfad0febf4a055cc07a7 /src | |
parent | 59c067cbe0ae317f99734fb7e9552556588983ac (diff) |
DocumentWidget: Updated error page localization
Added a new language string and blockquote styling for displaying the server's error message.
IssueID #280
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/documentwidget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 9b29c14f..452e5508 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1058,7 +1058,9 @@ static void showErrorPage_DocumentWidget_(iDocumentWidget *d, enum iGmStatusCode | |||
1058 | cstr_String(meta)); | 1058 | cstr_String(meta)); |
1059 | break; | 1059 | break; |
1060 | default: | 1060 | default: |
1061 | appendFormat_String(src, "\n\nServer returned error: %s", cstr_String(meta)); | 1061 | if (!isEmpty_String(meta)) { |
1062 | appendFormat_String(src, "\n\n${error.server.msg}\n> %s", cstr_String(meta)); | ||
1063 | } | ||
1062 | break; | 1064 | break; |
1063 | } | 1065 | } |
1064 | } | 1066 | } |