Skip to content

Commit

Permalink
storage_local: Fix incorrect permission check clause
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmo0920 committed Jun 17, 2016
1 parent b5ff1ac commit 1543ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/storage_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def configure(conf)
raise Fluent::ConfigError, "Unexpected error: failed to read data from plugin storage file: '#{@path}'"
end
else
raise Fluent::ConfigError, "Directory is not writable for plugin storage file '#{@path}'" unless File.writable?(@path)
raise Fluent::ConfigError, "Directory is not writable for plugin storage file '#{dir}'" unless File.writable?(dir)
end
end
end
Expand Down

0 comments on commit 1543ce4

Please sign in to comment.