mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-04 17:18:56 +03:00
feat(bundler) bail if can't parse tauri config (#502)
This commit is contained in:
parent
d37efa5605
commit
7278061e44
@ -243,7 +243,13 @@ impl Settings {
|
||||
|
||||
let merged_bundle_settings = match tauri_config {
|
||||
Ok(config) => merge_settings(bundle_settings, config.tauri.bundle),
|
||||
Err(_) => bundle_settings,
|
||||
Err(e) => {
|
||||
let error_message = e.to_string();
|
||||
if !error_message.contains("No such file or directory") {
|
||||
bail!("Failed to read Tauri config: {}", error_message);
|
||||
}
|
||||
bundle_settings
|
||||
},
|
||||
};
|
||||
|
||||
Ok(Settings {
|
||||
|
Loading…
Reference in New Issue
Block a user