From 27d2479327eba9c20c349059db60a72ececbdcc6 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Fri, 21 Jun 2013 00:08:06 -0500 Subject: [PATCH] Add error message if pecl fails to run This will log an error that might help the user troubleshoot why pecl failed to run. --- salt/modules/pecl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/modules/pecl.py b/salt/modules/pecl.py index 55761f855c..2e6d359c46 100644 --- a/salt/modules/pecl.py +++ b/salt/modules/pecl.py @@ -24,6 +24,7 @@ def _pecl(command): if ret['retcode'] == 0: return ret['stdout'] else: + log.error('Problem running pecl. Is php-pear installed?') return ''