diff --git a/gfx/wr/webrender/src/platform/unix/font.rs b/gfx/wr/webrender/src/platform/unix/font.rs index 52c0d114101c..1debfe488cd2 100644 --- a/gfx/wr/webrender/src/platform/unix/font.rs +++ b/gfx/wr/webrender/src/platform/unix/font.rs @@ -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) )) } }