Fix issue where missing override file is improperly handled

Signed-off-by: Erin Allison <erin@eallison.us>
This commit is contained in:
Erin Allison 2021-12-30 10:22:08 -06:00
parent c5a3c83854
commit 449f86e5f6
No known key found for this signature in database
GPG Key ID: 635F855566C675DB

View File

@ -395,7 +395,7 @@ fn handle_profile_override(config: &mut VgpuConfig) -> bool {
let config_overrides = match fs::read_to_string(&config_path) { let config_overrides = match fs::read_to_string(&config_path) {
Ok(data) => data, Ok(data) => data,
Err(e) => { Err(e) => {
if e.kind() != ErrorKind::NotFound { if e.kind() == ErrorKind::NotFound {
error!("Config file '{}' not found", config_path.display()); error!("Config file '{}' not found", config_path.display());
return true; return true;
} }