fix: try fix blank error

This commit is contained in:
GyDi
2023-05-28 17:35:00 +08:00
Unverified
parent 60046abec3
commit f5edca94d3

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}");
}