mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Added panic message to failures.
This commit is contained in:
parent
dfb482a2b7
commit
8c0fa01884
9 changed files with 88 additions and 37 deletions
|
@ -139,10 +139,7 @@ impl Pipeline {
|
|||
.expect("Pipeline script to compositor chan");
|
||||
let mut pipeline_port = Some(pipeline_port);
|
||||
|
||||
let failure = Failure {
|
||||
pipeline_id: state.id,
|
||||
parent_info: state.parent_info,
|
||||
};
|
||||
let failure = Failure::new(state.id, state.parent_info);
|
||||
|
||||
let window_size = state.window_size.map(|size| {
|
||||
WindowSizeData {
|
||||
|
@ -181,7 +178,7 @@ impl Pipeline {
|
|||
subpage_id: subpage_id,
|
||||
load_data: state.load_data.clone(),
|
||||
paint_chan: layout_to_paint_chan.clone().to_opaque(),
|
||||
failure: failure,
|
||||
failure: failure.clone(),
|
||||
pipeline_port: mem::replace(&mut pipeline_port, None)
|
||||
.expect("script_pipeline != None but pipeline_port == None"),
|
||||
layout_shutdown_chan: layout_shutdown_chan.clone(),
|
||||
|
@ -229,7 +226,7 @@ impl Pipeline {
|
|||
layout_to_constellation_chan: state.layout_to_constellation_chan,
|
||||
script_chan: script_chan,
|
||||
load_data: state.load_data.clone(),
|
||||
failure: failure,
|
||||
failure: failure.clone(),
|
||||
script_port: script_port,
|
||||
opts: (*opts::get()).clone(),
|
||||
layout_to_paint_chan: layout_to_paint_chan,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue