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

htcpcp: handle 418 I'm a teapot

parent 039db0b3
......@@ -135,6 +135,11 @@ static ssize_t Read (access_t *access, uint8_t *buf, size_t len)
if ((code / 100) != 2)
{
msg_Err (access, "server error %u", code);
if (code == 418)
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;
......
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