fix: try fix blank error

This commit is contained in:
GyDi 2023-05-28 17:35:00 +08:00
parent 60046abec3
commit f5edca94d3
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A

View File

@ -68,6 +68,10 @@ impl CoreManager {
if !output.status.success() {
let error = clash_api::parse_check_output(output.stdout.clone());
let error = match error.len() > 0 {
true => error,
false => output.stdout.clone(),
};
Logger::global().set_log(output.stdout);
bail!("{error}");
}