Skip to content

Commit

Permalink
[roswtf] Better msg replacement for 'No package or stack in context'. (
Browse files Browse the repository at this point in the history
…ros#1505)

When there's no ROS pkg is found on the current directory when `roswtf` is run, a message `No package or stack in context` appears. This message is not useful IMO because "context" is unclear.

This PR suggests clearer message.

**How to reproduce the behavior**
```
$ cd ~
$ roswtf
:
No package or stack in context
:

$ rosversion roswtf
1.12.14
```
  • Loading branch information
130s authored and tahsinkose committed Apr 15, 2019
1 parent 1162338 commit ace3e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/roswtf/src/roswtf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _roswtf_main():
print("Stack:", curr_stack)
ctx = WtfContext.from_stack(curr_stack)
else:
print("No package or stack in context")
print("No package or stack in the current directory")
ctx = WtfContext.from_env()
if options.all_packages:
print("roswtf will run against all packages")
Expand Down

0 comments on commit ace3e12

Please sign in to comment.