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>
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