From 671365b5057cabb4e30a661a54c0b84dccdda37a Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Sat, 9 Oct 2021 12:05:17 +0530 Subject: [PATCH] fix(init): Use stderr for init error message (#3131) * Use stderr for init error message * Add a dummy commit to appease the Semantic PR bot Co-authored-by: Kevin Song --- src/init/mod.rs | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/init/mod.rs b/src/init/mod.rs index abff3865..bcb47f20 100644 --- a/src/init/mod.rs +++ b/src/init/mod.rs @@ -173,23 +173,23 @@ pub fn init_stub(shell_name: &str) -> io::Result<()> { starship.sprint_posix()? ), _ => { - let quoted_arg = shell_words::quote(shell_basename); - println!( - "printf \"\\n%s is not yet supported by starship.\\n\ - For the time being, we support the following shells:\\n\ - * bash\\n\ - * elvish\\n\ - * fish\\n\ - * ion\\n\ - * powershell\\n\ - * tcsh\\n\ - * zsh\\n\ - * nu\\n\ - * xonsh\\n\ - \\n\ + eprintln!( + "{0} is not yet supported by starship.\n\ + For the time being, we support the following shells:\n\ + * bash\n\ + * elvish\n\ + * fish\n\ + * ion\n\ + * powershell\n\ + * tcsh\n\ + * zsh\n\ + * nu\n\ + * xonsh\n\ + \n\ Please open an issue in the starship repo if you would like to \ - see support for %s:\\nhttps://github.com/starship/starship/issues/new\\n\\n\" {0} {0}", - quoted_arg + see support for {0}:\n\ + https://github.com/starship/starship/issues/new\n", + shell_basename ) } };