aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGravatar Alexey Roslyakov <alexey.roslyakov@gmail.com>2017-12-18 21:00:16 +0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-18 15:18:40 +0100
commit5d2c69dad50a0b9d770c1a1898db8a65d34813c6 (patch)
tree889c8d52877717c6a5de7f67106bbd9a5ae5fcdd /utils
parentcfbcc7c2fd275df4e091506dc1954d6996d488cd (diff)
downloadbuildroot-5d2c69dad50a0b9d770c1a1898db8a65d34813c6.tar.gz
buildroot-5d2c69dad50a0b9d770c1a1898db8a65d34813c6.tar.bz2
utils/scanpypi: increase error message verbosity
When package installation fails it is good to know what happened. Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/scanpypi6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/scanpypi b/utils/scanpypi
index 02384f2569..939c26a187 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -608,9 +608,9 @@ def main():
else:
raise
continue
- except AttributeError:
- print('Error: Could not install package {pkg}'.format(
- pkg=package.real_name))
+ except AttributeError as error:
+ print('Error: Could not install package {pkg}: {error}'.format(
+ pkg=package.real_name, error=error))
continue
# Package requirement are an argument of the setup function