Skip to content

Commit b180eba

Browse files
fix: Use correct tmp_dir in sqlx prepare error message (#4234)
1 parent 3945a1a commit b180eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-cli/src/prepare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fn run_prepare_step(ctx: &PrepareCtx, cache_dir: &Path) -> anyhow::Result<()> {
161161
let tmp_dir = ctx.metadata.target_directory().join("sqlx-tmp");
162162
fs::create_dir_all(&tmp_dir).context(format!(
163163
"Failed to create temporary query cache directory: {:?}",
164-
cache_dir
164+
tmp_dir
165165
))?;
166166

167167
// Only delete sqlx-*.json files to avoid accidentally deleting any user data.

0 commit comments

Comments
 (0)