From f336f38ad505df8cf85cbe7ae9ce3c1d363a1ded Mon Sep 17 00:00:00 2001 From: Treer Date: Mon, 25 Apr 2016 22:09:15 +1000 Subject: improve error message in config and pconfig --- util/pconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'util/pconfig') diff --git a/util/pconfig b/util/pconfig index 77fcd6d38..1afba8306 100755 --- a/util/pconfig +++ b/util/pconfig @@ -3,6 +3,14 @@ // Red pconfig utility + +if(!file_exists('include/cli_startup.php')) { + echo 'Run pconfig from the top level Hubzilla web directory, as util/pconfig ' . PHP_EOL; + exit(1); +} + + + require_once('include/cli_startup.php'); require_once('include/zot.php'); -- cgit v1.2.3