1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-11-08 09:09:17 +01:00

Improve some messages

This commit is contained in:
mo8it 2024-07-07 15:53:48 +02:00
parent e764b75aef
commit a5f221aa39
3 changed files with 7 additions and 6 deletions

@ -1 +1 @@
This file is used to check if the user tries to run Rustlings in the repository (the method before v6) This file is used to check if the user tries to run Rustlings in the repository (the method before version 6)

@ -139,7 +139,7 @@ const README: &str = "# Rustlings πŸ¦€
Welcome to these third-party Rustlings exercises πŸ˜ƒ Welcome to these third-party Rustlings exercises πŸ˜ƒ
First, [install Rustlings using the official instructions in the README of the Rustlings project](https://github.com/rust-lang/rustlings) βœ… First, [install Rustlings using the official instructions](https://github.com/rust-lang/rustlings) βœ…
Then, open your terminal in this directory and run `rustlings` to get started with the exercises πŸš€ Then, clone this repository, open a terminal in this directory and run `rustlings` to get started with the exercises πŸš€
"; ";

@ -197,9 +197,10 @@ fn main() -> Result<()> {
Ok(()) Ok(())
} }
const OLD_METHOD_ERR: &str = "You are trying to run Rustlings using the old method before v6. const OLD_METHOD_ERR: &str =
"You are trying to run Rustlings using the old method before version 6.
The new method doesn't include cloning the Rustlings' repository. The new method doesn't include cloning the Rustlings' repository.
Please follow the instructions in the README: Please follow the instructions in `README.md`:
https://github.com/rust-lang/rustlings#getting-started"; https://github.com/rust-lang/rustlings#getting-started";
const FORMAT_VERSION_HIGHER_ERR: &str = const FORMAT_VERSION_HIGHER_ERR: &str =
@ -216,5 +217,5 @@ const PRE_INIT_MSG: &str = r"
|_| \__,_|___/\__|_|_|_| |_|\__, |___/ |_| \__,_|___/\__|_|_|_| |_|\__, |___/
|___/ |___/
The `exercises` directory wasn't found in the current directory. The `exercises/` directory couldn't be found in the current directory.
If you are just starting with Rustlings, run the command `rustlings init` to initialize it."; If you are just starting with Rustlings, run the command `rustlings init` to initialize it.";