Skip to content

Commit

Permalink
Update error message to not start with capital letters
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
  • Loading branch information
hi-rustin committed Apr 20, 2023
1 parent 4d401bd commit 2659681
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo/util/toml_mut/dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ impl Dependency {
let src = WorkspaceSource::new();
src.into()
} else {
let mut msg = format!("Unrecognized dependency source for `{key}`");
let mut msg = format!("unrecognized dependency source for `{key}`");
if table.is_empty() {
msg.push_str(
", expected a table with a `version`, `git`, `path`, or `workspace` key",
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/cargo_add/empty_dep_table/stderr.log
Original file line number Diff line number Diff line change
@@ -1 +1 @@
error: Unrecognized dependency source for `your-face`, expected a table with a `version`, `git`, `path`, or `workspace` key
error: unrecognized dependency source for `your-face`, expected a table with a `version`, `git`, `path`, or `workspace` key

0 comments on commit 2659681

Please sign in to comment.