summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2019-05-10 20:47:55 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2019-05-10 20:47:55 +0000
commit14fcb546000dd1e37cbded6f1b2bdda94d7073d4 (patch)
treebbccf6af42250611795afe6c2b5710d6d627105d /distrib
parent3856dbe4ffb5626f02e4599dd228332979b6b9e8 (diff)
Improve error message of "Question has no answer in response file".
It didn't always print the actual question so it was hard to debug problems in the autoinstall(8) script. OK florian@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 6c629c9d0d1..3cd3b55cef5 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1130 2019/05/10 15:38:19 krw Exp $
+# $OpenBSD: install.sub,v 1.1131 2019/05/10 20:47:54 reyk Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -710,7 +710,7 @@ _autorespond() {
print -r " $_l"
done </tmp/ai/ai.conf.tmp >/tmp/ai/ai.conf
[[ -n $_def ]] && resp=$_def && return
- err_exit "\nQuestion has no answer in response file."
+ err_exit "\nQuestion has no answer in response file: \"$_q\""
}
# Capture user response either by issuing an interactive read or by searching