Skip to content

Commit 08f52d3

Browse files
committed
Merge branch 'release/0.2.5'
2 parents 4642b86 + b687ba3 commit 08f52d3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Change log
33
**********
44

5+
0.2.5
6+
#####
7+
8+
* A more verbose error message is now printed if there's an issue during importing a script (issue #102).
9+
510
0.2.4
611
#####
712

sphinxarg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.2.4'
1+
__version__ = '0.2.5'

sphinxarg/ext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from argparse import ArgumentParser
23
import os
34

@@ -442,7 +443,7 @@ def run(self):
442443
try:
443444
mod = __import__(module_name, globals(), locals(), [attr_name])
444445
except:
445-
raise self.error('Failed to import "%s" from "%s"' % (attr_name, module_name))
446+
raise self.error('Failed to import "%s" from "%s".\n%s' % (attr_name, module_name, sys.exc_info()[1]))
446447

447448
if not hasattr(mod, attr_name):
448449
raise self.error((

0 commit comments

Comments
 (0)