From 6f087127c64ccc5c39b97a8e05f4f72735a6a505 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Thu, 25 Apr 2013 10:32:12 +0530 Subject: [PATCH] Add `Antigen:` prefix to error messages. When in a script, it can be very hard to tell where an error is coming from, just from the message. Adding this prefix should help a bit, by providing some context to the error. --- antigen.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index bf1fcd5..eb72e8d 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -546,7 +546,7 @@ EOF antigen () { local cmd="$1" if [[ -z "$cmd" ]]; then - echo 'Please give a command to run.' >&2 + echo 'Antigen: Please give a command to run.' >&2 return 1 fi shift @@ -554,7 +554,7 @@ antigen () { if functions "antigen-$cmd" > /dev/null; then "antigen-$cmd" "$@" else - echo "Unknown command: $cmd" + echo "Antigen: Unknown command: $cmd" >&2 fi } -- 2.0.0