Skip to content

Commit

Permalink
fix windows build without updater
Browse files Browse the repository at this point in the history
  • Loading branch information
oneElectron committed Nov 22, 2023
1 parent 4bbcee8 commit 6c95c95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/resolve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ fn internal_resolve_templates_folder(disable_os_search: bool, search_path: &Opti
if let Ok(path_to_templates) = search_in_windows() {
return Ok(path_to_templates);
}
#[cfg(feature = "updater")]
return Err(Error::NotDownloaded);
#[cfg(not(feature = "updater"))]
return Err(Error::NotFound);
}
}

Expand Down

0 comments on commit 6c95c95

Please sign in to comment.