From 91b46b305df3de2c684982677318408acf596b4f Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 3 Feb 2006 01:33:04 +1000 Subject: [PATCH] Make error message in contains function translatable darcs-hash:20060202153304-ac50b-69fc557308b7ae7eb3a3d8d658e6f7c871aa68cd.gz --- init/fish_function.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/fish_function.fish b/init/fish_function.fish index 89e9859df..6a8e436ef 100644 --- a/init/fish_function.fish +++ b/init/fish_function.fish @@ -18,8 +18,8 @@ function contains -d "Test if a key is contained in a set of values" break case '-*' - echo Unknown option $argv[$i] - _contains_help + printf (_ "%s: Unknown option '%s'\n") contains $argv[$i] + help contains return 1 case '*'