Remove incorrect unreachable usage when guessing DPI factor (#592)

This commit is contained in:
Francesca Frangipane
2018-07-05 11:52:25 -04:00
committed by GitHub
parent ec393e4a90
commit 040d3f5d8b
3 changed files with 3 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ impl UnownedWindow {
.unwrap_or(1.0)
})
} else {
unreachable!("There are no detected monitors, which should've already caused a panic.");
return Err(OsError(format!("No monitors were detected.")));
};
info!("Guessed window DPI factor: {}", dpi_factor);