Log some errors in plugins

This commit is contained in:
Simon Gomizelj 2011-12-01 01:09:48 -05:00
commit 2836d2c365
3 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -14,4 +14,6 @@ if (( $+commands[tmux] )); then
fi
}
fi
else
omz_log_mgs "notfound: plugin requires tmux"
fi