[zsh] add more error reporting to zplg

This commit is contained in:
Dmytro Meleshko 2019-09-16 19:31:07 +03:00
parent 0e201ba4ea
commit 59fc6fee46

View file

@ -309,6 +309,8 @@ plugin() {
# load plugin {{{
{
_zplg_run_commands plugin_before_load || return "$?"
local load_pattern ignore_pattern script_path; local -a script_paths
@ -346,6 +348,12 @@ plugin() {
unset plugin_build_quoted
fi
} always {
if [[ "$?" != 0 ]]; then
_zplg_error "an error occured while loading $plugin_id"
fi
}
# }}}
}