From 381101e10d85c93c33dd2ace133bfad8e34fc5a0 Mon Sep 17 00:00:00 2001 From: Alan Franzoni Date: Mon, 3 Mar 2014 20:14:29 +0100 Subject: [PATCH] Enh: Improved message if a config file is missing --- lib/fpm/package/rpm.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fpm/package/rpm.rb b/lib/fpm/package/rpm.rb index dc0dda7b91..d8bc4e8ed4 100644 --- a/lib/fpm/package/rpm.rb +++ b/lib/fpm/package/rpm.rb @@ -349,6 +349,7 @@ def output(output_path) allconfigs = [] self.config_files.each do |path| cfg_path = File.expand_path(path, staging_path) + raise "Config file path #{cfg_path} does not exist" unless File.exist?(cfg_path) Find.find(cfg_path) do |p| allconfigs << p.gsub("#{staging_path}/", '') if File.file? p end