Skip to content

Commit b0c3b57

Browse files
authored
Merge pull request #374 from 3scale/minor-update
remove confusing space when file not found
2 parents c492a3d + 7e5b8da commit b0c3b57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/3scale_toolbox/resource_reader.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def read_content(resource, verify_ssl)
3030

3131
# Detect format from file extension
3232
def read_file(filename)
33-
raise ThreeScaleToolbox::Error, "File not found: #{filename} " unless File.file?(filename)
34-
raise ThreeScaleToolbox::Error, "File not readable: #{filename} " unless File.readable?(filename)
33+
raise ThreeScaleToolbox::Error, "File not found: #{filename}" unless File.file?(filename)
34+
raise ThreeScaleToolbox::Error, "File not readable: #{filename}" unless File.readable?(filename)
3535

3636
File.read(filename)
3737
end

0 commit comments

Comments
 (0)