mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-08 05:58:43 +02:00
- do_addchannels: handle wrong args more gracefully
This commit is contained in:
@@ -470,7 +470,8 @@ class Osc(cmdln.Cmdln):
|
||||
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:
|
||||
|
Reference in New Issue
Block a user