mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] add more error reporting to zplg
This commit is contained in:
parent
0e201ba4ea
commit
59fc6fee46
1 changed files with 58 additions and 50 deletions
|
@ -309,6 +309,8 @@ plugin() {
|
||||||
|
|
||||||
# load plugin {{{
|
# load plugin {{{
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
_zplg_run_commands plugin_before_load || return "$?"
|
_zplg_run_commands plugin_before_load || return "$?"
|
||||||
|
|
||||||
local load_pattern ignore_pattern script_path; local -a script_paths
|
local load_pattern ignore_pattern script_path; local -a script_paths
|
||||||
|
@ -346,6 +348,12 @@ plugin() {
|
||||||
unset plugin_build_quoted
|
unset plugin_build_quoted
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
} always {
|
||||||
|
if [[ "$?" != 0 ]]; then
|
||||||
|
_zplg_error "an error occured while loading $plugin_id"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue