use same error for same error type thing - surf-adblock - Surf adblock web extension
(HTM) git clone git://git.codemadness.org/surf-adblock
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 327b1bc633ff956ca11e2c6ef4dd972be16f8532
(DIR) parent 6c346e74c3f8ccf71c543ef327b6f123bee908ba
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 6 Jun 2017 09:49:40 +0200
use same error for same error type thing
Diffstat:
M adblock.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/adblock.c b/adblock.c
@@ -993,8 +993,8 @@ init(void)
continue;
len = strlen(r->css);
- if (string_append(&globalcss, r->css, strlen(r->css)) < len) {
- weprintf("cannot load global css selectors in memory\n");
+ if (string_append(&globalcss, r->css, len) < len) {
+ weprintf("cannot append CSS rule to global CSS selectors\n");
cleanup();
return;
}
@@ -1002,8 +1002,7 @@ init(void)
s = r->isexception ? "{display:initial;}" : "{display:none;}";
len = strlen(s);
if (string_append(&globalcss, s, len) < len) {
- weprintf("cannot append CSS rule "
- "to global CSS selectors\n");
+ weprintf("cannot append CSS rule to global CSS selectors\n");
cleanup();
return;
}