Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 3, 2023
1 parent 5ed9db6 commit fe6ad8f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/turbopack-css/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,11 @@ async fn parse_content(
..Default::default()
};

let mut errors = Vec::new();
let mut parsed_stylesheet = match StyleSheet::parse(&fm, config) {
let mut parsed_stylesheet = match StyleSheet::parse(&string, config) {
Ok(stylesheet) => stylesheet,
Err(e) => {
// TODO report in in a stream
e.to_diagnostics(&handler).emit();
// TODO(kdy1): Report errors
// e.to_diagnostics(&handler).emit();
return Ok(ParseCssResult::Unparseable.into());
}
};
Expand Down

0 comments on commit fe6ad8f

Please sign in to comment.