Skip to content

Commit

Permalink
service: define paths as expecting Pathname or string
Browse files Browse the repository at this point in the history
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
  • Loading branch information
SMillerDev and Rylan12 committed May 24, 2021
1 parent fceaa2b commit e29b2ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/service.rb
Expand Up @@ -55,7 +55,7 @@ def root_dir(path = nil)
when String, Pathname
@root_dir = path.to_s
else
raise TypeError, "Service#root_dir expects a String"
raise TypeError, "Service#root_dir expects a String or Pathname"
end
end

Expand All @@ -67,7 +67,7 @@ def input_path(path = nil)
when String, Pathname
@input_path = path.to_s
else
raise TypeError, "Service#input_path expects a String"
raise TypeError, "Service#input_path expects a String or Pathname"
end
end

Expand Down

0 comments on commit e29b2ca

Please sign in to comment.