From 793583dd443d28f763c391a41bb51e86dfe373a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Fri, 18 Sep 2009 19:11:06 +0000 Subject: [PATCH] Be more explicit when we can't find the static content for the web ui. Also, warn a bit mor about this in configure --- configure | 6 ++++-- src/webui/webui.c | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 2c6cbfed..8e0cadde 100755 --- a/configure +++ b/configure @@ -116,10 +116,12 @@ setup_ffmpeg --cpu=${CPU} # Configure paths, etc # if [ ${RELEASE} != yes ]; then + echo NOTE: echo NOTE: Development build. echo NOTE: The generated binary will contained compild-in paths to - echo NOTE: the current build tree. If you plan to install the binary, - echo NOTE: please reconfigure with '--release'. + echo NOTE: the current build tree. If you plan to install or move + echo NOTE: the binary, please reconfigure with '--release'. + echo NOTE: cat >> ${CONFIG_H} << EOF #define TVHEADEND_CONTENT_PATH "${TOPDIR}" diff --git a/src/webui/webui.c b/src/webui/webui.c index c4c94a34..f9fd905c 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -251,7 +251,11 @@ webui_static_content(const char *content_path, const char *http_path, } tvhlog(LOG_ERR, "webui", - "No source path providing HTTP content: %s", http_path); + "No source path providing HTTP content: \"%s\"." + "Checked in \"%s\" and in the binary's embedded file system. " + "If you need to move or install the binary, " + "reconfigure with --release", http_path, content_path); + }