mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1650801
- Panic instead of failing gracefully if FreeType failed to initialize. r=gw
Bug 1650662 makes us RELEASE_ASSERT on FreeType initialization earlier so I think it's unlikely that we ever hit this case in the future. Differential Revision: https://phabricator.services.mozilla.com/D82390
This commit is contained in:
parent
510aab7dd9
commit
ca9bed50d3
@ -336,7 +336,9 @@ impl FontContext {
|
||||
} else {
|
||||
// TODO(gw): Provide detailed error values.
|
||||
Err(ResourceCacheError::new(
|
||||
format!("Failed to initialize FreeType - {}", result)
|
||||
// Once this panic has been here for a while with no issues we should get rid of
|
||||
// ResourceCacheError as this was the only place that could fail previously.
|
||||
panic!("Failed to initialize FreeType - {}", result)
|
||||
))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user