make parse trace have newlines

This commit is contained in:
greg 2017-09-16 15:05:11 -07:00
parent 18c761a5b5
commit fbeb101e7f

View File

@ -83,8 +83,14 @@ impl TraceArtifact {
} }
pub fn new_parse_trace(trace: Vec<String>) -> TraceArtifact { pub fn new_parse_trace(trace: Vec<String>) -> TraceArtifact {
let debug = format!("Parse trace: {:?}", trace); let mut output = String::new();
TraceArtifact { stage_name: "parse_trace".to_string(), debug_output: debug, text_color: "red"}
for t in trace {
output.push_str(&t);
output.push_str("\n");
}
TraceArtifact { stage_name: "parse_trace".to_string(), debug_output: output, text_color: "red"}
} }
} }