diff options
author | Monty Taylor <mordred@inaugust.com> | 2013-05-13 10:14:11 -0400 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2013-05-13 10:20:31 -0400 |
commit | 5d0e256f4bdcd93a0da85c01de0677f2ef91f428 (patch) | |
tree | 0f3432d1e1b8713d4eb9d15029bbc22d2d6a7c06 | |
parent | 0d335d080445d9a657a9e9e3397ccbb682ac5025 (diff) | |
download | pbr-5d0e256f4bdcd93a0da85c01de0677f2ef91f428.tar.gz |
Make parse errors meaningful.
This makes the error displays on a bad setup.cfg value go from:
error in setup command: Error parsing setup.cfg: IOError: 2
to
error in setup command: Error parsing setup.cfg: IOError: No such file or
directory: 'README'
Which makes debugging eversomuch better.
-rw-r--r-- | pbr/d2to1/core.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pbr/d2to1/core.py b/pbr/d2to1/core.py index 929f575..1c72eae 100644 --- a/pbr/d2to1/core.py +++ b/pbr/d2to1/core.py @@ -47,8 +47,7 @@ def d2to1(dist, attr, value): except: e = sys.exc_info()[1] raise DistutilsSetupError( - 'Error parsing %s: %s: %s' % (path, e.__class__.__name__, - e.args[0])) + 'Error parsing %s: %s: %s' % (path, e.__class__.__name__, e)) # Repeat some of the Distribution initialization code with the newly # provided attrs |