Skip to content

Commit

Permalink
put quotes around dir file name in error
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabwhy committed Mar 1, 2024
1 parent 0fb04f8 commit cf3f5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async fn load_vpk(state: tauri::State<'_, AppState>, vpk_path: String) -> Result
.to_string();
if !LANG_STRS.iter().any(|lang| vpk_file_name.starts_with(lang)) {
println!("Tried to open archive file: {}", fmt);
return Err(format!("Tried to open archive file, consider opening english{}_dir.vpk instead.", &vpk_file_name.as_str()[..(vpk_file_name.len() - 8)]));
return Err(format!("Tried to open archive file, consider opening \"english{}_dir.vpk\" instead.", &vpk_file_name.as_str()[..(vpk_file_name.len() - 8)]));
}
}
println!("Unsupported format: {}", fmt);
Expand Down

0 comments on commit cf3f5df

Please sign in to comment.