Permalink
Browse files

Display an error and exit if no repo URL is defined or provided inste…

…ad of crashing
  • Loading branch information...
gregneagle committed Jul 24, 2017
1 parent e59467c commit 5d94853946713eb81965d78c8461c424c66bd256
Showing with 7 additions and 0 deletions.
  1. +7 −0 code/client/munkiimport
View
@@ -770,6 +770,13 @@ Extended Options: (makepkginfo options)
if repo_path:
options.repo_url = path2url(repo_path)
if not options.repo_url:
print >> sys.stderr, ('No repo URL found. Please run this tool with '
'the --configure option, or use the --repo-url '
'option.')
parser.print_help()
exit(-1)
if not options.plugin:
options.plugin = 'FileRepo'

0 comments on commit 5d94853

Please sign in to comment.