mirror of
https://github.com/mbilker/vgpu_unlock-rs.git
synced 2026-01-17 11:57:00 +01:00
Fix issue where missing override file is improperly handled
Signed-off-by: Erin Allison <erin@eallison.us>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user