From: Frederic Massart Date: Thu, 21 Feb 2013 06:32:29 +0000 (+0800) Subject: Improved error report on failed install X-Git-Tag: v0.4~91 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=703265ac362e02ff2ff0276f3393dc3003894f1a;p=mdk.git Improved error report on failed install --- diff --git a/lib/moodle.py b/lib/moodle.py index 1e2f5bf..d490b6a 100644 --- a/lib/moodle.py +++ b/lib/moodle.py @@ -395,7 +395,7 @@ class Moodle(object): args = '--wwwroot="%s" --dataroot="%s" --dbtype="%s" --dbname="%s" --dbuser="%s" --dbpass="%s" --dbhost="%s" --fullname="%s" --shortname="%s" --adminuser="%s" --adminpass="%s" --allow-unstable --agree-license --non-interactive' % params result = self.cli(cli, args, stdout=None, stderr=None) if result[0] != 0: - raise Exception('Error while running the install, please manually fix the problem.') + raise Exception('Error while running the install, please manually fix the problem.\n- Command was: %s %s %s' % (C.get('php'), cli, args)) configFile = os.path.join(self.path, 'config.php') os.chmod(configFile, 0666)