Wouldn't this just make the function return that string? I think you have to print to stderr: `echo "…" >&2`