Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity
@ 2017-12-18 14:00 Alexey Roslyakov
  2017-12-18 14:16 ` Yegor Yefremov
  2017-12-18 14:19 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Alexey Roslyakov @ 2017-12-18 14:00 UTC (permalink / raw)
  To: buildroot

When package installation fails it is good to know what happened.

Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com>
---
 utils/scanpypi | 6 +++---
 1 file 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
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-18 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-18 14:00 [Buildroot] [PATCH 1/1] utils/scanpypi: increase error message verbosity Alexey Roslyakov
2017-12-18 14:16 ` Yegor Yefremov
2017-12-18 14:19 ` Thomas Petazzoni
2017-12-18 14:56   ` Yegor Yefremov
2017-12-18 17:50     ` Alexey Roslyakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox