add checksum mismatch detection
This commit is contained in:
parent
51abe9e7c8
commit
c7bee19ab1
1 changed files with 13 additions and 0 deletions
|
@ -32,6 +32,7 @@ pub async fn find(log: &str, data: &Data) -> Result<Vec<(String, String)>> {
|
||||||
java_32_bit,
|
java_32_bit,
|
||||||
intermediary_mappings,
|
intermediary_mappings,
|
||||||
old_forge_new_java,
|
old_forge_new_java,
|
||||||
|
checksum_mismatch,
|
||||||
];
|
];
|
||||||
|
|
||||||
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
|
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
|
||||||
|
@ -400,3 +401,15 @@ fn old_forge_new_java(log: &str) -> Issue {
|
||||||
);
|
);
|
||||||
found.then_some(issue)
|
found.then_some(issue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn checksum_mismatch(log: &str) -> Issue {
|
||||||
|
let issue = (
|
||||||
|
"Outdated cached files".to_string(),
|
||||||
|
"It looks like you need to delete cached files.
|
||||||
|
To do that, press Folders ⟶ View Launcher Root Folder, and **after closing the launcher** delete the folder named \"meta\"."
|
||||||
|
.to_string(),
|
||||||
|
);
|
||||||
|
|
||||||
|
let found = log.contains("Checksum mismatch, download is bad.");
|
||||||
|
found.then_some(issue)
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue