We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8facae9 commit 4c652dcCopy full SHA for 4c652dc
src/main.rs
@@ -74,9 +74,8 @@ fn main() {
74
env_logger::init();
75
76
let resources = match env::var("MESON_DEVENV") {
77
- Err(_) => {
78
- gio::Resource::load(config::RESOURCES_FILE).expect("Unable to load resources.gresource")
79
- }
+ Err(_) => gio::Resource::load(config::RESOURCES_FILE)
+ .unwrap_or_else(|_| panic!("Unable to load {}", config::RESOURCES_FILE)),
80
Ok(_) => match env::current_exe() {
81
Ok(path) => {
82
let mut resource_path = path;
0 commit comments