]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
allow file(x, :missing => '') macro to report the path of x in the missing text.
authorelijah <elijah@riseup.net>
Wed, 25 Jun 2014 19:48:04 +0000 (12:48 -0700)
committerelijah <elijah@riseup.net>
Wed, 25 Jun 2014 21:20:50 +0000 (14:20 -0700)
lib/leap_cli/config/object.rb

index d609256635b3ed0d31931450ebd0946e6f1e881f..ef66757ceabce92fce8113364966028c8171d872 100644 (file)
@@ -257,7 +257,7 @@ module LeapCli
           rescue FileMissing => exc
             Util::bail! do
               if exc.options[:missing]
-                Util::log :missing, exc.options[:missing].gsub('$node', self.name)
+                Util::log :missing, exc.options[:missing].gsub('$node', self.name).gsub('$file', exc.path)
               else
                 Util::log :error, "while evaluating node '#{self.name}'"
                 Util::log "offending key: #{key}", :indent => 1