Skip to content

Commit

Permalink
fixed if file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorben Willert committed Oct 10, 2024
1 parent fec185e commit 87a656f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/oxidized/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ def self.load(cmd_opts = {})

if asetus.create
puts "Configuration file created at #{@configfile}. Please edit it."
elsif !File.exist?(@configfile)
raise NoConfig, "Configuration file #{@configfile} is missing and could not be created."
else
raise NoConfig, "Configuration file #{@configfile} is missing."
puts "Configuration file #{@configfile} already exists."
end

# override if comand line flag given
Expand Down

0 comments on commit 87a656f

Please sign in to comment.