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

tests(prost-build): Fix error texts #1156

Merged
merged 1 commit into from
Sep 13, 2024
Merged
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
4 changes: 2 additions & 2 deletions prost-build/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ mod tests {
config.protoc_executable("src/lib.rs");

let err = config.load_fds(&[""], &[""]).unwrap_err();
assert_starts_with!(err.to_string(), "failed to invoke protoc (hint: https://docs.rs/prost-build/#sourcing-protoc): (path: \"src/lib.rs\"): ")
assert_starts_with!(err.to_string(), "failed to invoke protoc (hint: https://docs.rs/prost-build/#sourcing-protoc): (path: src/lib.rs): ")
}

#[test]
Expand Down Expand Up @@ -1319,7 +1319,7 @@ mod tests {
let err = config.load_fds(&[""], &[""]).unwrap_err();
assert_starts_with!(
err.to_string(),
"unable to open file_descriptor_set_path: \"path-does-not-exist\", OS: "
"unable to open file_descriptor_set_path: path-does-not-exist, OS: "
)
}

Expand Down