Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message. #63

Merged
merged 1 commit into from May 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/gem2rpm
Expand Up @@ -25,13 +25,13 @@ if options[:print_template_file]
end

if rest.size != 1
Gem2Rpm.show_message('Missing GEMFILE', options)
Gem2Rpm.show_message('Missing GEMFILE')
exit(1)
end
gemfile = rest[0]
out_dir = options[:directory]
unless Dir.exist?(out_dir)
Gem2Rpm.show_message('No such directory', options)
Gem2Rpm.show_message("No such directory #{out_dir}")
exit(1)
end

Expand All @@ -48,7 +48,7 @@ if options[:fetch]
end

unless File.exist?(gemfile)
Gem2Rpm.show_message('Invalid GEMFILE', options)
Gem2Rpm.show_message("Invalid GEMFILE #{gemfile}")
exit(1)
end
srpmdir = nil
Expand Down