Skip to content

Commit

Permalink
Tweak brioche build --check to build with warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Jan 20, 2024
1 parent b1548ee commit 54de81f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/brioche/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ async fn build(args: BuildArgs) -> anyhow::Result<ExitCode> {
if args.check {
let checked = brioche::brioche::script::check::check(&brioche, &project).await?;

let result =
checked.ensure_ok(brioche::brioche::script::check::DiagnosticLevel::Warning);
let result = checked.ensure_ok(brioche::brioche::script::check::DiagnosticLevel::Error);

match result {
Ok(()) => reporter.emit(superconsole::Lines::from_multiline_string(
Expand Down

0 comments on commit 54de81f

Please sign in to comment.