Skip to contentSkip to conversation

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

PATCH In review Fredrik Kuivinen 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 instaweb: Nicer error message when the http daemon isn't found

---

 git-instaweb.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
git-instaweb.sh +3 -0
index 08362f4..80adc83 100755
@@ -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."
#1 lore raw
Quoted 4 lines · Fredrik Kuivinen
Signature · 1 line
Eric Wong
Quoted 18 lines
 git-instaweb.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
git-instaweb.sh +3 -1
index 08362f4..80adc83 100755
@@ -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."
-