summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config')
-rw-r--r--cloudinit/config/cc_apt_configure.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py
index 5819897d..b094ea22 100644
--- a/cloudinit/config/cc_apt_configure.py
+++ b/cloudinit/config/cc_apt_configure.py
@@ -183,8 +183,9 @@ def add_sources(srclist, template_params=None, aa_repo_match=None):
if aa_repo_match(source):
try:
util.subp(["add-apt-repository", source])
- except:
- errorlist.append([source, "add-apt-repository failed"])
+ except util.ProcessExecutionError as e:
+ errorlist.append([source,
+ ("add-apt-repository failed. " + str(e))])
continue
if 'filename' not in ent: