fix(tauri-bundler): add a bit more context to error message (#14606)

This commit is contained in:
sftse 2025-12-05 04:56:34 +01:00 committed by GitHub
parent 514cf21e14
commit 546b296405
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,8 +119,9 @@ pub fn generate_data(
for bin in settings.binaries() {
let bin_path = settings.binary_path(bin);
fs_utils::copy_file(&bin_path, &bin_dir.join(bin.name()))
.with_context(|| format!("Failed to copy binary from {bin_path:?}"))?;
let trgt = bin_dir.join(bin.name());
fs_utils::copy_file(&bin_path, &trgt)
.with_context(|| format!("Failed to copy binary from {bin_path:?} to {trgt:?}"))?;
}
copy_resource_files(settings, &data_dir).with_context(|| "Failed to copy resource files")?;