lib/nginxtra/actions/start.rb in nginxtra-1.2.1.2 vs lib/nginxtra/actions/start.rb in nginxtra-1.2.1.3
- old
+ new
@@ -32,10 +32,10 @@
end
# Save nginx config files to the proper config file path.
def save_config_files
files = @config.files
- raise Nginxtra::Error::InvalidConfig.new("Missing definition for nginx.conf") unless files.include? "nginx.conf"
+ raise Nginxtra::Error::InvalidConfig.new("Missing definition for nginx.conf", :header => "Missing definition for nginx.conf!", :message => "You must define your nginx.conf configuration in your nginxtra.conf.rb file.") unless files.include? "nginx.conf"
@thor.inside Nginxtra::Config.config_dir do
files.each do |filename|
@thor.create_file filename, @config.file_contents(filename), :force => true
end