Skip to content

Commit

Permalink
- do_addchannels: handle wrong args more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-h committed Jul 15, 2015
1 parent 0daec6a commit e9d7ac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ def do_addchannels(self, subcmd, opts, *args):
elif is_package_dir(localdir):
project = store_read_project(localdir)
channel = store_read_package(localdir)
# XXX: error handling?
else:
raise oscerr.WrongArgs('Either specify project [package] or call it from a project/package working copy')
else:
project = args[0]
if len(args) > 1:
Expand Down

0 comments on commit e9d7ac9

Please sign in to comment.