Skip to content

Commit

Permalink
Changelog and merge update for no-traces message improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Jan 30, 2018
1 parent 29fc555 commit e627cd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
master
------

* Improve error messages in case of "no traces found" and/or file path given
instead of module name. Merge of #37, partial fix for #65. Thanks Aarni
Koskela.

* Add ``monkeytype list_modules`` sub-command to list all modules present in
trace db. Merge of #61, fixes #60. Thanks Alex Miasoiedov.

Expand Down
2 changes: 1 addition & 1 deletion monkeytype/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def list_modules_handler(args: argparse.Namespace, stdout: IO, stderr: IO) -> No
output, file = None, stdout
modules = args.config.trace_store().list_modules()
if not modules:
print(f'No traces found', file=stderr)
complain_about_no_traces(args, stderr)
return
output = '\n'.join(modules)
print(output, file=file)
Expand Down

0 comments on commit e627cd1

Please sign in to comment.