diff options
author | elijah <elijah@riseup.net> | 2014-06-25 12:48:04 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-06-25 12:48:04 -0700 |
commit | 98bd8c88c2cff5b267bf2d125ef4515ec241954f (patch) | |
tree | d7c901bb953ddcbcbe130d6efce1242ca0654f96 | |
parent | 51fb645e07b0bd2b567fd44e465acdfc958d817a (diff) | |
download | leap_cli-98bd8c88c2cff5b267bf2d125ef4515ec241954f.tar.gz leap_cli-98bd8c88c2cff5b267bf2d125ef4515ec241954f.tar.bz2 |
allow file(x, :missing => '') macro to report the path of x in the missing text.HEADmasterhotfix/6374
-rw-r--r-- | lib/leap_cli/config/object.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb index 3375c6a..2392d1c 100644 --- a/lib/leap_cli/config/object.rb +++ b/lib/leap_cli/config/object.rb @@ -261,7 +261,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 |