For now, don't error out with typechecking

This commit is contained in:
greg 2018-05-05 02:07:27 -07:00
parent 8ad5dd9056
commit 8826d5b0d4
1 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,10 @@ fn typechecking(handle: &mut Schala, input: parsing::AST, comp: Option<&mut Unfi
comp.map(|comp| comp.add_artifact(TraceArtifact::new("type_check", format!("{:?}", ty))));
Ok(input)
},
Err(msg) => Err(msg)
Err(msg) => {
comp.map(|comp| comp.add_artifact(TraceArtifact::new("type_check", format!("{:?}", msg))));
Ok(input)
}
}
}