mirror of
https://github.com/mbilker/vgpu_unlock-rs.git
synced 2025-06-08 13:28:23 +02:00
Fix issue where missing override file is improperly handled
Signed-off-by: Erin Allison <erin@eallison.us>
This commit is contained in:
parent
c5a3c83854
commit
449f86e5f6
@ -395,7 +395,7 @@ fn handle_profile_override(config: &mut VgpuConfig) -> bool {
|
||||
let config_overrides = match fs::read_to_string(&config_path) {
|
||||
Ok(data) => data,
|
||||
Err(e) => {
|
||||
if e.kind() != ErrorKind::NotFound {
|
||||
if e.kind() == ErrorKind::NotFound {
|
||||
error!("Config file '{}' not found", config_path.display());
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user