threads / patch / 6251

patchinstaweb: Nicer error message when the http daemon isn't found

Subject: [PATCH] instaweb: Nicer error message when the http daemon isn't found

## tl;dr

2 messages between Jan 6, 2007 and Jan 7, 2007. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Fredrik Kuivinen· Jan 6, 2007, 10:40 UTC · lore
Signed-off-by: Fredrik Kuivinen <frekui@gmail.com>
---
 git-instaweb.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Show changes to git-instaweb.sh +3 −0
diff --git a/git-instaweb.sh b/git-instaweb.sh
index 08362f4..80adc83 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -53,6 +53,9 @@ start_httpd () {
 				return
 			fi
 		done
+		echo "$httpd_only not found. Install $httpd_only or use" \
+		     "--httpd to specify another http daemon."
+		exit 1
 	fi
 	if test $? != 0; then
 		echo "Could not execute http daemon $httpd."
Eric Wong· Jan 7, 2007, 02:09 UTC · re: Fredrik Kuivinen · lore

Re: [PATCH] instaweb: Nicer error message when the http daemon isn't found

Fredrik Kuivinen <frekui@gmail.com> wrote:
> 
> 
> 
> Signed-off-by: Fredrik Kuivinen <frekui@gmail.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
-- 
Eric Wong

>  git-instaweb.sh |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/git-instaweb.sh b/git-instaweb.sh
> index 08362f4..80adc83 100755
> --- a/git-instaweb.sh
> +++ b/git-instaweb.sh
> @@ -53,6 +53,9 @@ start_httpd () {
>  				return
>  			fi
>  		done
> +		echo "$httpd_only not found. Install $httpd_only or use" \
> +		     "--httpd to specify another http daemon."
> +		exit 1
>  	fi
>  	if test $? != 0; then
>  		echo "Could not execute http daemon $httpd."
> -

← back to recent threads