Abort with friendly message on no user or project
This commit is contained in:
parent
4f640b74ac
commit
91ac00c1d3
|
@ -20,7 +20,10 @@ module GitHubChangelogGenerator
|
|||
abort [e, parser].join("\n")
|
||||
end
|
||||
|
||||
abort(parser.to_s) unless options[:user] && options[:project]
|
||||
unless options[:user] && options[:project]
|
||||
warn "Tell us which user and project to work on. Options --user and --project, or settings to that effect."
|
||||
abort(parser.to_s)
|
||||
end
|
||||
|
||||
options.print_options
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user