Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve missing crate error message #148

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ fn escape(s: &str) -> String {
}

static MISSING_CRATE_ERR_MSG: &str = "\
It looks like you're using a crate which isn't supported by our test runner.
Please see the file at the below URL to check which ones are supported.
Please get in touch if you think your crate should be included
It looks like you're using a crate which isn't supported by our test runner. \
Please see the file at the below URL to check which ones are supported. \
Please get in touch if you think your crate should be included \
or something else about the user experience could be improved.

List of available crates:
Expand Down
2 changes: 1 addition & 1 deletion tests/example-missing-crate/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 2,
"status": "error",
"message": "It looks like you're using a crate which isn't supported by our test runner.\nPlease see the file at the below URL to check which ones are supported.\nPlease get in touch if you think your crate should be included\nor something else about the user experience could be improved.\n\nList of available crates:\nhttps://github.com/exercism/rust-test-runner/blob/main/local-registry/Cargo.toml\n\nExercism forum (Rust topic):\nhttps://forum.exercism.org/c/programming/rust\n"
"message": "It looks like you're using a crate which isn't supported by our test runner. Please see the file at the below URL to check which ones are supported. Please get in touch if you think your crate should be included or something else about the user experience could be improved.\n\nList of available crates:\nhttps://github.com/exercism/rust-test-runner/blob/main/local-registry/Cargo.toml\n\nExercism forum (Rust topic):\nhttps://forum.exercism.org/c/programming/rust\n"
}
Loading