From 2836d2c365fd0549b2d615104e2f3d21dbdbcfee Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Thu, 1 Dec 2011 01:09:48 -0500 Subject: [PATCH] Log some errors in plugins --- plugins/notfound/notfound.plugin.zsh | 2 ++ plugins/sprunge/sprunge.plugin.zsh | 1 + plugins/tmux/tmux.plugin.zsh | 2 ++ 3 files changed, 5 insertions(+) diff --git a/plugins/notfound/notfound.plugin.zsh b/plugins/notfound/notfound.plugin.zsh index 6ec65c881..eac6bb0b4 100644 --- a/plugins/notfound/notfound.plugin.zsh +++ b/plugins/notfound/notfound.plugin.zsh @@ -20,4 +20,6 @@ if (( $+commands[pkgfile] )); then echo "The command \"$1\" can be found in the following packages:" for p in $pkg; echo " $p" } +else + omz_log_msg "notfound: plugin requires pkgtools" fi diff --git a/plugins/sprunge/sprunge.plugin.zsh b/plugins/sprunge/sprunge.plugin.zsh index 7ccb806bb..bb38d23b5 100644 --- a/plugins/sprunge/sprunge.plugin.zsh +++ b/plugins/sprunge/sprunge.plugin.zsh @@ -26,6 +26,7 @@ except: } else # if we happen to lack python, just report everything as text + omz_log_msg "sprunge: syntax highlighting disabled since python isn't available" sprunge_syntax() { echo 'text' } fi diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index 0ee652f97..76f688cf2 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -14,4 +14,6 @@ if (( $+commands[tmux] )); then fi } fi +else + omz_log_mgs "notfound: plugin requires tmux" fi