diff options
author | corvid <devnull@localhost> | 2014-04-22 04:50:40 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2014-04-22 04:50:40 +0000 |
commit | 3ebeafcd6862d493c60eff6a10ade8d049f4e82a (patch) | |
tree | 81d8208fc82bfc9b9e0546083138d2fd9cefd67a | |
parent | 5e49c957e5a5f12bf679bd9ec3575daea5426a78 (diff) |
in bad-url BUG_MSG, provide the url string
-rw-r--r-- | src/html.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/html.cc b/src/html.cc index 9224f43b..f6d970e9 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; |