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

Bump thiserror to 2.0 #4337

Merged
merged 1 commit into from
Nov 8, 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
2 changes: 1 addition & 1 deletion diesel_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ diesel_table_macro_syntax = { version = "0.2", path = "../diesel_table_macro_syn
syn = { version = "2", features = ["visit"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3.10", features = ["env-filter"] }
thiserror = "1.0.10"
thiserror = "2.0.0"
similar-asserts = "1.6.0"

[dependencies.diesel]
Expand Down
2 changes: 1 addition & 1 deletion diesel_cli/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub enum Error {
ProjectRootNotFound(PathBuf),
#[error("The --database-url argument must be passed, or the DATABASE_URL environment variable must be set.")]
DatabaseUrlMissing,
#[error("Encountered an IO error: {0} {}", print_optional_path(.1))]
#[error("Encountered an IO error: {0} {n}", n=print_optional_path(.1))]
IoError(#[source] std::io::Error, Option<PathBuf>),
#[error("Failed to execute a database query: {0}")]
QueryError(#[from] diesel::result::Error),
Expand Down
Loading