From: Alexey Roslyakov Date: Mon, 18 Dec 2017 14:00:16 +0000 (+0700) Subject: utils/scanpypi: increase error message verbosity X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d2c69dad50a0b9d770c1a1898db8a65d34813c6;p=buildroot.git utils/scanpypi: increase error message verbosity When package installation fails it is good to know what happened. Signed-off-by: Alexey Roslyakov Reviewed-by: Yegor Yefremov Signed-off-by: Thomas Petazzoni --- 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