Skip to content

Commit

Permalink
Variable name change and catch all exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalle Lindström committed Apr 5, 2014
1 parent 5702033 commit 975b30d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/viddl-rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ begin
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
driver = Driver.new(params)
driver.start # starts the download process

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

rescue StandardError => e
rescue => e
puts "Error: #{e.message}"
puts "\nBacktrace:"
puts e.backtrace
Expand Down

0 comments on commit 975b30d

Please sign in to comment.