From 91ac00c1d3036911c940e85c659c4eec01651ce5 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 19 Oct 2017 09:00:40 +0200 Subject: [PATCH] Abort with friendly message on no user or project --- lib/github_changelog_generator/parser.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/parser.rb b/lib/github_changelog_generator/parser.rb index 707129e..b2c0062 100755 --- a/lib/github_changelog_generator/parser.rb +++ b/lib/github_changelog_generator/parser.rb @@ -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