Skip to content
Permalink
Browse files

better error message

  • Loading branch information...
sdpython committed Aug 22, 2017
1 parent 8b43dcf commit 475ed65453a713eea80643cf60a6409e9a94952c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/pyquickhelper/sphinxext/sphinx_autosignature.py
@@ -79,7 +79,7 @@ def run(self):
except ImportError as e:
logger = logging.getLogger("AutoSignature")
logger.warning(
"[AutoSignature] unable to import '{0}'".format(object_name))
"[AutoSignature] unable to import '{0}' due to '{1}'".format(object_name, e))
if lineno is not None:
logger.warning(
' File "{0}", line {1}'.format(source, lineno))
@@ -89,7 +89,7 @@ def run(self):
if opt_members is not None and kind != "class":
logger = logging.getLogger("autosignature")
logger.warning(
"[autosignature] option members is specific but '{0}' is not a class.".format(object_name))
"[autosignature] option members is specified but '{0}' is not a class (kind='{1}').".format(object_name, kind))
obj = None

# build node

0 comments on commit 475ed65

Please sign in to comment.
You can’t perform that action at this time.