aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-02-10 23:54:50 -0800
committerelijah <elijah@riseup.net>2013-02-10 23:54:50 -0800
commitd68e6a718f0b8c982b0d502558b6b25eb2df23fb (patch)
tree4f7cb904ae593c706775ec150dbd8753a7c739c9
parentb57bd7654615aa501d1e7ad662aaabd70c11620a (diff)
downloadleap_cli-d68e6a718f0b8c982b0d502558b6b25eb2df23fb.tar.gz
leap_cli-d68e6a718f0b8c982b0d502558b6b25eb2df23fb.tar.bz2
add debug notice if file is missing for macro file_path(x)
-rw-r--r--lib/leap_cli/config/object.rb2
-rw-r--r--lib/leap_cli/log.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb
index b0e3017..6f30fe9 100644
--- a/lib/leap_cli/config/object.rb
+++ b/lib/leap_cli/config/object.rb
@@ -257,7 +257,7 @@ module LeapCli
end
actual_path = Path.find_file(path)
if actual_path.nil?
- Util::log 2, :missing, path
+ Util::log 2, :skipping, "file_path(\"#{path}\") because there is no such file."
nil
else
if actual_path =~ /^#{Regexp.escape(Path.provider_base)}/
diff --git a/lib/leap_cli/log.rb b/lib/leap_cli/log.rb
index e111693..ab361d5 100644
--- a/lib/leap_cli/log.rb
+++ b/lib/leap_cli/log.rb
@@ -88,6 +88,7 @@ module LeapCli
when :nochange then ['no change', :magenta]
when :loading then ['loading', :magenta]
when :missing then ['missing', :yellow, :bold]
+ when :skipping then ['skipping', :yellow, :bold]
when :run then ['run', :magenta]
when :failed then ['FAILED', :red, :bold]
when :completed then ['completed', :green, :bold]