From 450f70c8bdff7e3868a09cf016d5579021b457bb Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 2 Mar 2013 14:58:16 +0000 Subject: bin/editor: print error on STDERR and exit with error in case of error --- bin/editor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/editor b/bin/editor index a7d5326..057b977 100755 --- a/bin/editor +++ b/bin/editor @@ -18,4 +18,5 @@ exec_editor emacs "$@" exec_editor vim "$@" exec_editor nano "$@" -echo "no text editor detected" +echo "no text editor detected" >&2 +exit 1 -- cgit v1.2.1