lib/buff/ignore/errors.rb in buff-ignore-1.0.2 vs lib/buff/ignore/errors.rb in buff-ignore-1.0.3
- old
+ new
@@ -5,14 +5,16 @@
# Raised when an ignore file cannot be found
class IgnoreFileNotFound < BuffIgnoreError
# @param [String] path
# the path where the ignore file was not found
def initialize(path)
- @path = File.expand_path(path)
+ @path = path
end
# @return [String]
- def message
+ def to_s
+ "No ignore file found at '#{File.expand_path(@path)}'!"
+ rescue
"No ignore file found at '#{@path}'!"
end
end
end