Skip to content

Commit

Permalink
Fix #288. When target lists are empty it now outputs an error() messa…
Browse files Browse the repository at this point in the history
…ge and returns instead of using raise().
  • Loading branch information
urbanadventurer committed Jan 21, 2020
1 parent a959f21 commit a696f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whatweb/scan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def initialize(urls, input_file: nil, url_prefix: nil, url_suffix: nil, url_patt
url_pattern: url_pattern
)

raise('No targets selected') if @targets.empty?
error('No targets selected') if @targets.empty?

@max_threads = max_threads.to_i || 25
@target_queue = Queue.new # workers consume from this
Expand Down

0 comments on commit a696f86

Please sign in to comment.