1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

add propper error handling in case running "osc log" outside of checked out project/package

This commit is contained in:
Adrian Schröter 2010-05-27 07:21:33 +02:00
parent b0b5953b3e
commit e4615a324b

View File

@ -4156,6 +4156,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
package = "_project"
else:
package = store_read_package(wd)
else:
raise oscerr.WrongArgs('Local directory is not a checked out resource and no remote project/package given.')
elif len(args) < 1:
raise oscerr.WrongArgs('Too few arguments (required none or two)')
elif len(args) > 2: