diff --git a/docs/changelog.rst b/docs/changelog.rst index eca477aeeb..462faba884 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -26,6 +26,7 @@ Changed - Added indentation & section name to the ``SUMMARY`` CLI block. - Use C-extension for YAML loading when it is possible. It can cause more than 10x speedup on schema parsing. - Do not show Click's "Aborted!" message when an error occurs during schema loading in CLI. +- Add a help message to the CLI output when an internal exception happens. `#529`_ `1.2.0`_ - 2020-04-15 --------------------- @@ -934,6 +935,7 @@ Fixed .. _0.3.0: https://github.com/kiwicom/schemathesis/compare/v0.2.0...v0.3.0 .. _0.2.0: https://github.com/kiwicom/schemathesis/compare/v0.1.0...v0.2.0 +.. _#529: https://github.com/kiwicom/schemathesis/issues/529 .. _#521: https://github.com/kiwicom/schemathesis/issues/521 .. _#513: https://github.com/kiwicom/schemathesis/issues/513 .. _#504: https://github.com/kiwicom/schemathesis/issues/504 diff --git a/src/schemathesis/cli/output/default.py b/src/schemathesis/cli/output/default.py index b034d7554c..d9de26582f 100644 --- a/src/schemathesis/cli/output/default.py +++ b/src/schemathesis/cli/output/default.py @@ -264,7 +264,11 @@ def display_internal_error(context: ExecutionContext, event: events.InternalErro message = event.exception_with_traceback else: message = event.exception - click.secho(f"Error: {message}", fg="red") + click.secho( + f"Error: {message}\n" + f"Add this option to your command line parameters to see full tracebacks: --show-errors-tracebacks", + fg="red", + ) def handle_initialized(context: ExecutionContext, event: events.Initialized) -> None: