Report debug information on failed autoloading

This commit is contained in:
Enrico Lumetti 2015-12-10 14:35:53 +01:00
parent ae61a98f38
commit 11276ffa66

View File

@ -36,7 +36,7 @@ def -params 1 -docstring "colorscheme <name>: enable named colorscheme" \
autoload() {
dir=$1
for rcfile in ${dir}/*.kak; do
echo "try %{ source '${rcfile}' } catch %{ }";
echo "try %{ source '${rcfile}' } catch %{ echo -debug Autoload: could not load '${rcfile}' }";
done
for subdir in ${dir}/*; do
if [ -d "$subdir" ]; then