Skip to content

Commit

Permalink
Added detailed error message if only file fails
Browse files Browse the repository at this point in the history
  • Loading branch information
m42e committed Dec 14, 2015
1 parent 3a0f26e commit 220773a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zgen.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ zgen-load() {
-zgen-add-to-fpath "${location}"

else
if [[ -d ${dir:-$location} ]]; then
echo "zgen: Failed to load ${dir:-$location} -- ${file}"
else
echo "zgen: Failed to load ${dir:-$location}"
fi
fi
}

Expand Down

0 comments on commit 220773a

Please sign in to comment.