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>
This commit is contained in:
Alexey Roslyakov
2017-12-18 15:18:40 +01:00
committed by Thomas Petazzoni
parent cfbcc7c2fd
commit 5d2c69dad5
+3 -3
View File
@@ -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