utils/scanpypi: increase error message verbosity
authorAlexey Roslyakov <alexey.roslyakov@gmail.com>
Mon, 18 Dec 2017 14:00:16 +0000 (21:00 +0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 18 Dec 2017 14:18:40 +0000 (15:18 +0100)
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>
utils/scanpypi

index 02384f2569693751d964189e3b0ea9a5d82d70f2..939c26a187c18f081cd2ba9bf007b640fdf8b712 100755 (executable)
@@ -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