diff --git a/src/lib.rs b/src/lib.rs index df6b971..ffb5c00 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -179,10 +179,15 @@ impl MultiScreen { .split("_").collect::>()[0] .split("x").collect::>(); - last.resolutions.push(( - resolution[0].parse::()?, - resolution[1].parse::()?, - )); + if let Ok(width) = resolution[0].parse::() { + if let Ok(height) = resolution[1].parse::() { + last.resolutions.push((width, height)); + } else { + eprintln!("Warning: couldn't parse height: {}, skipping...", resolution[1]); + } + } else { + eprintln!("Warning: couldn't parse width: {}, skipping...", resolution[0]); + } }