From ec61dbd8022a3672a1160e240cb952f247b9f5e0 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 24 Jan 2012 23:40:32 -0500 Subject: [PATCH] Fixed a few error messages. --- helper.zsh | 4 ++-- init.zsh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helper.zsh b/helper.zsh index dc25281e..0ad29ce3 100644 --- a/helper.zsh +++ b/helper.zsh @@ -19,12 +19,12 @@ TRAP_SIGNALS=( # Adds a function to a list to be called when a trap is triggered. function add-zsh-trap() { if (( $# < 2 )); then - print "usage: $0 type function" + print "usage: $0 type function" >&2 return 1 fi if [[ -z "$TRAP_SIGNALS[(r)$1]" ]]; then - print "$0: unknown signal: $1" + print "$0: unknown signal: $1" >&2 return 1 fi diff --git a/init.zsh b/init.zsh index 46545ae7..97df02c0 100644 --- a/init.zsh +++ b/init.zsh @@ -3,7 +3,7 @@ # Check for the minimum supported version. min_zsh_version='4.3.10' if ! autoload -Uz is-at-least || ! is-at-least "$min_zsh_version"; then - print "omz: too old shell version detected, minimum required: $min_zsh_version" + print "omz: old shell version detected, minimum required: $min_zsh_version" >&2 fi unset min_zsh_version