diff --git a/diesel_cli/Cargo.toml b/diesel_cli/Cargo.toml index fbb06d5f209d..475dbd334e06 100644 --- a/diesel_cli/Cargo.toml +++ b/diesel_cli/Cargo.toml @@ -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] diff --git a/diesel_cli/src/errors.rs b/diesel_cli/src/errors.rs index 88ced1c140fb..8f538503d5b5 100644 --- a/diesel_cli/src/errors.rs +++ b/diesel_cli/src/errors.rs @@ -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), #[error("Failed to execute a database query: {0}")] QueryError(#[from] diesel::result::Error),