lib/rake/funnel/ambiguous_file_error.rb in rake-funnel-0.22.2 vs lib/rake/funnel/ambiguous_file_error.rb in rake-funnel-0.22.3
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Rake
module Funnel
class AmbiguousFileError < StandardError
attr_reader :task_name, :search_pattern, :candidates, :description
@@ -31,9 +33,10 @@
["Search pattern used: #{search_pattern}"] if search_pattern
end
def inspect_candidates
return if (candidates || []).empty?
+
['Candidates:', candidates.map { |c| " - #{c}" }]
end
end
end
end