Commit 3c4fc2f3 authored by Pierre Ynard's avatar Pierre Ynard

htcpcp: handle 418 I'm a teapot

parent 039db0b3
...@@ -135,8 +135,13 @@ static ssize_t Read (access_t *access, uint8_t *buf, size_t len) ...@@ -135,8 +135,13 @@ static ssize_t Read (access_t *access, uint8_t *buf, size_t len)
if ((code / 100) != 2) if ((code / 100) != 2)
{ {
msg_Err (access, "server error %u", code); msg_Err (access, "server error %u", code);
dialog_FatalWait (access, N_("Coffee pot"), if (code == 418)
N_("The pot failed to brew coffee (server error %u)."), code); dialog_FatalWait (access, N_("Teapot"), "%s",
N_("The server is a teapot. You can't brew coffee with "
"a teapot."));
else
dialog_FatalWait (access, N_("Coffee pot"),
N_("The pot failed to brew coffee (server error %u)."), code);
goto error; goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment