Skip to content

Commit

Permalink
Merge pull request #16 from hwittenborn/main
Browse files Browse the repository at this point in the history
Show more useful error message when `icons.toml` doesn't exist
  • Loading branch information
AaronErhardt authored May 28, 2024
2 parents 7e6f8a3 + 0eea049 commit bcbca15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ fn main() {
.to_str()
.expect("Couldn't convert manifest directory to string")
.to_owned();
(Config::load(&config_dir).unwrap(), config_dir)
(
Config::load(&config_dir).expect("Couldn't find `icons.toml` next to `Cargo.toml`"),
config_dir,
)
};

eprintln!("Canonical config dir: {config_dir:?}");
Expand Down

0 comments on commit bcbca15

Please sign in to comment.