about summary refs log tree commit diff
path: root/Functions/Misc/add-zle-hook-widget
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Misc/add-zle-hook-widget')
-rw-r--r--Functions/Misc/add-zle-hook-widget4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Misc/add-zle-hook-widget b/Functions/Misc/add-zle-hook-widget
index 04be50478..82a404d7a 100644
--- a/Functions/Misc/add-zle-hook-widget
+++ b/Functions/Misc/add-zle-hook-widget
@@ -25,7 +25,7 @@ emulate -L zsh
 # This is probably more safeguarding than necessary
 zmodload -e zsh/zle || return 1
 { zmodload zsh/parameter && zmodload zsh/zleparameter } || {
-    print -u2 "Need parameter modules for zle hooks"
+    print -u2 "add-zle-hook-widget: Need parameter modules for zle hooks"
     return 1
 }
 
@@ -130,7 +130,7 @@ function add-zle-hook-widget {
 	# Check whether attempting to add a widget named for the hook
 	if [[ "$fn" = "$hook" ]]; then
 	    if [[ -n "${widgets[$fn]}" ]]; then
-		print -u2 "Cannot hook $fn to itself"
+		print -u2 "${0}: Cannot hook $fn to itself"
 		return 1
 	    fi
 	    # No point in building the array until another is added