aboutsummaryrefslogtreecommitdiff
path: root/src/web.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-10-15 19:33:01 +0000
committercorvid <corvid@lavabit.com>2010-10-15 19:33:01 +0000
commit21d55d46536fcd702a5ae742554e8d353ba64cf9 (patch)
tree2158048a0fc343ee0c2e1262427d2e1800084bec /src/web.cc
parentb52e67fd0ddec3263a73edf04fa7aeb616120435 (diff)
clearer msg when can't display something as image
Diffstat (limited to 'src/web.cc')
-rw-r--r--src/web.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/web.cc b/src/web.cc
index 17302b1c..74435ad6 100644
--- a/src/web.cc
+++ b/src/web.cc
@@ -89,12 +89,12 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web,
} else {
/* A non-RootUrl. At this moment we only handle image-children */
- if (!dStrncasecmp(Type, "image/", 6))
+ if (!dStrncasecmp(Type, "image/", 6)) {
dw = (Widget*) a_Mime_set_viewer(Type, Web, Call, Data);
- }
-
- if (!dw) {
- MSG_HTTP("unhandled MIME type: \"%s\"\n", Type);
+ } else {
+ MSG_HTTP("'%s' cannot be displayed as image; has media type '%s'\n",
+ URL_STR(Web->url), Type);
+ }
}
return (dw ? 1 : -1);
}