aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2014-04-22 04:50:40 +0000
committercorvid <devnull@localhost>2014-04-22 04:50:40 +0000
commitd1ed173827bedfa07ac504c1c2966bc0e2c65ce3 (patch)
treeabbe28988950dab5898677ea6af9f904a8729af1 /src
parent6031f8f9a0e736a7aad47f4f24266f0125cdf76e (diff)
in bad-url BUG_MSG, provide the url string
Diffstat (limited to 'src')
-rw-r--r--src/html.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/html.cc b/src/html.cc
index f8734444..5b080b27 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -158,15 +158,15 @@ DilloUrl *a_Html_url_new(DilloHtml *html,
const char *suffix = (n_ic) > 1 ? "s" : "";
n_ic_spc = URL_ILLEGAL_CHARS_SPC(url);
if (n_ic == n_ic_spc) {
- BUG_MSG("URL has %d illegal space%s\n", n_ic, suffix);
+ BUG_MSG("URL has %d illegal space%s ('%s')\n", n_ic, suffix, url_str);
} else if (n_ic_spc == 0) {
- BUG_MSG("URL has %d illegal character%s in {00-1F, 7F} range\n",
- n_ic, suffix);
+ BUG_MSG("URL has %d illegal byte%s in {00-1F, 7F} range ('%s')\n",
+ n_ic, suffix, url_str);
} else {
- BUG_MSG("URL has %d illegal character%s: "
- "%d space%s, and %d in {00-1F, 7F} range\n",
+ BUG_MSG("URL has %d illegal byte%s: "
+ "%d space%s and %d in {00-1F, 7F} range ('%s')\n",
n_ic, suffix,
- n_ic_spc, n_ic_spc > 1 ? "s" : "", n_ic-n_ic_spc);
+ n_ic_spc, n_ic_spc > 1 ? "s" : "", n_ic-n_ic_spc, url_str);
}
}
return url;