Skip to content

Commit

Permalink
chore: Add a help message to the CLI output when an internal exceptio…
Browse files Browse the repository at this point in the history
…n happens
  • Loading branch information
Stranger6667 committed Apr 24, 2020
1 parent 4e5f463 commit b13f6c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Expand Up @@ -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
---------------------
Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/schemathesis/cli/output/default.py
Expand Up @@ -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:
Expand Down

0 comments on commit b13f6c6

Please sign in to comment.