mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-13 13:04:26 +03:00
Don't introduce an unnecessary error message
svn path=/trunk/netsurf/; revision=5670
This commit is contained in:
parent
8a16d5942b
commit
ee675539e0
@ -149,9 +149,10 @@ bool html_create(struct content *c, const char *params[])
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (error == BINDING_BADENCODING)
|
if (error == BINDING_BADENCODING) {
|
||||||
msg_data.error = messages_get("BadEncoding");
|
LOG(("Bad encoding: %s", html->encoding ? html->encoding : ""));
|
||||||
else
|
msg_data.error = messages_get("ParsingFail");
|
||||||
|
} else
|
||||||
msg_data.error = messages_get("NoMemory");
|
msg_data.error = messages_get("NoMemory");
|
||||||
|
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
|
||||||
@ -218,9 +219,11 @@ encoding_change:
|
|||||||
if (err != BINDING_OK) {
|
if (err != BINDING_OK) {
|
||||||
union content_msg_data msg_data;
|
union content_msg_data msg_data;
|
||||||
|
|
||||||
if (err == BINDING_BADENCODING)
|
if (err == BINDING_BADENCODING) {
|
||||||
msg_data.error = messages_get("BadEncoding");
|
LOG(("Bad encoding: %s", c->data.html.encoding
|
||||||
else
|
? c->data.html.encoding : ""));
|
||||||
|
msg_data.error = messages_get("ParsingFail");
|
||||||
|
} else
|
||||||
msg_data.error = messages_get("NoMemory");
|
msg_data.error = messages_get("NoMemory");
|
||||||
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
|
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user