Skip to content

Commit

Permalink
logo try handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Coder-Harshit committed Jun 15, 2024
1 parent aa8fd66 commit 5332208
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ fn get_logo_path() -> PathBuf {
}

fn read_logo(path: PathBuf) -> String {
fs::read_to_string(path).unwrap_or_default()
}
fs::read_to_string(path).unwrap_or_else(|_| "Logo not found".red().to_string())}


fn main() {
Expand Down

0 comments on commit 5332208

Please sign in to comment.