Fix lint errors introduced by begin/rescue block in read_configuration
This commit is contained in:
parent
b62ff3b37a
commit
9b3271ac40
2 changed files with 4 additions and 2 deletions
|
@ -2,3 +2,5 @@ Metrics/MethodLength:
|
|||
Max: 25
|
||||
Metrics/AbcSize:
|
||||
Enabled: false
|
||||
Style/RedundantBegin:
|
||||
Enabled: false
|
||||
|
|
|
@ -9,8 +9,8 @@ require 'net/ldap'
|
|||
def read_configuration(path)
|
||||
begin
|
||||
TOML.load_file(path)
|
||||
rescue Errno::ENOENT => raisedError
|
||||
puts "Could not open configuration file: #{raisedError}"
|
||||
rescue Errno::ENOENT => raised_error
|
||||
puts "Could not open configuration file: #{raised_error}"
|
||||
exit(1)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue