Skip to content

Commit

Permalink
Fix missing puts and add ViddlRb::RequirementError
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalle Lindström committed Oct 7, 2012
1 parent 7d3ae70 commit b1bf895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/viddl-rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ begin

puts "Loading Plugins"
ViddlRb::UtilityHelper.load_plugins
"Plugins loaded: #{ViddlRb::PluginBase.registered_plugins.inspect}"
puts "Plugins loaded: #{ViddlRb::PluginBase.registered_plugins.inspect}"

puts "Will try to extract audio: #{params[:extract_audio] == true}."
puts "Analyzing URL: #{params[:url]}"

app = Driver.new(params)
app.start # starts the download process

rescue OptionParser::ParseError => e
rescue OptionParser::ParseError, ViddlRb::RequirementError => e
puts "Error: #{e.message}"
exit(1)

Expand Down

0 comments on commit b1bf895

Please sign in to comment.