Skip to content

Commit d9ab4cb

Browse files
committed
Turn warning into error
1 parent c8b02ea commit d9ab4cb

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

crates/next-core/src/segment_config.rs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ async fn parse_config_value(
516516
span,
517517
rcstr!("It needs to be a static object."),
518518
Some(&value),
519-
IssueSeverity::Warning,
519+
IssueSeverity::Error,
520520
)
521521
.await;
522522
};
@@ -529,7 +529,7 @@ async fn parse_config_value(
529529
span,
530530
rcstr!("It contains unsupported spread."),
531531
Some(&value),
532-
IssueSeverity::Warning,
532+
IssueSeverity::Error,
533533
)
534534
.await;
535535
};
@@ -541,7 +541,7 @@ async fn parse_config_value(
541541
span,
542542
rcstr!("It must only contain string keys."),
543543
Some(&value),
544-
IssueSeverity::Warning,
544+
IssueSeverity::Error,
545545
)
546546
.await;
547547
};
@@ -555,7 +555,7 @@ async fn parse_config_value(
555555
span,
556556
rcstr!("`runtime` needs to be needs to be a static string."),
557557
Some(&value),
558-
IssueSeverity::Warning,
558+
IssueSeverity::Error,
559559
)
560560
.await;
561561
};
@@ -570,7 +570,7 @@ async fn parse_config_value(
570570
span,
571571
format!("`runtime` has an invalid value: {err}.").into(),
572572
Some(&value),
573-
IssueSeverity::Warning,
573+
IssueSeverity::Error,
574574
)
575575
.await;
576576
}
@@ -604,7 +604,7 @@ async fn parse_config_value(
604604
static strings."
605605
),
606606
Some(item),
607-
IssueSeverity::Warning,
607+
IssueSeverity::Error,
608608
)
609609
.await?;
610610
}
@@ -621,7 +621,7 @@ async fn parse_config_value(
621621
strings."
622622
),
623623
Some(&value),
624-
IssueSeverity::Warning,
624+
IssueSeverity::Error,
625625
)
626626
.await?;
627627
None
@@ -643,7 +643,7 @@ async fn parse_config_value(
643643
span,
644644
rcstr!("It needs to be a static string."),
645645
Some(&value),
646-
IssueSeverity::Warning,
646+
IssueSeverity::Error,
647647
)
648648
.await;
649649
};
@@ -657,7 +657,7 @@ async fn parse_config_value(
657657
span,
658658
format!("It has an invalid value: {err}.").into(),
659659
Some(&value),
660-
IssueSeverity::Warning,
660+
IssueSeverity::Error,
661661
)
662662
.await;
663663
}
@@ -673,7 +673,7 @@ async fn parse_config_value(
673673
span,
674674
rcstr!("It needs to be a static boolean."),
675675
Some(&value),
676-
IssueSeverity::Warning,
676+
IssueSeverity::Error,
677677
)
678678
.await;
679679
};
@@ -711,7 +711,7 @@ async fn parse_config_value(
711711
span,
712712
rcstr!("It needs to be a static string."),
713713
Some(&value),
714-
IssueSeverity::Warning,
714+
IssueSeverity::Error,
715715
)
716716
.await;
717717
};
@@ -725,7 +725,7 @@ async fn parse_config_value(
725725
span,
726726
format!("It has an invalid value: {err}.").into(),
727727
Some(&value),
728-
IssueSeverity::Warning,
728+
IssueSeverity::Error,
729729
)
730730
.await;
731731
}
@@ -741,7 +741,7 @@ async fn parse_config_value(
741741
span,
742742
rcstr!("It needs to be a static string."),
743743
Some(&value),
744-
IssueSeverity::Warning,
744+
IssueSeverity::Error,
745745
)
746746
.await;
747747
};
@@ -755,7 +755,7 @@ async fn parse_config_value(
755755
span,
756756
format!("It has an invalid value: {err}.").into(),
757757
Some(&value),
758-
IssueSeverity::Warning,
758+
IssueSeverity::Error,
759759
)
760760
.await;
761761
}
@@ -781,7 +781,7 @@ async fn parse_config_value(
781781
span,
782782
rcstr!("Values of the array need to be static strings."),
783783
Some(&item),
784-
IssueSeverity::Warning,
784+
IssueSeverity::Error,
785785
)
786786
.await;
787787
}
@@ -795,7 +795,7 @@ async fn parse_config_value(
795795
span,
796796
rcstr!("It needs to be a static string or array of static strings."),
797797
Some(&value),
798-
IssueSeverity::Warning,
798+
IssueSeverity::Error,
799799
)
800800
.await;
801801
}
@@ -821,7 +821,7 @@ async fn parse_config_value(
821821
span,
822822
rcstr!("`experimental_ppr` needs to be a static boolean."),
823823
Some(&value),
824-
IssueSeverity::Warning,
824+
IssueSeverity::Error,
825825
)
826826
.await;
827827
};
@@ -937,7 +937,7 @@ async fn parse_route_matcher_from_js_value(
937937
span,
938938
rcstr!("Values of the `matcher` array need to be static strings"),
939939
Some(value),
940-
IssueSeverity::Warning,
940+
IssueSeverity::Error,
941941
)
942942
.await?;
943943
}
@@ -950,7 +950,7 @@ async fn parse_route_matcher_from_js_value(
950950
span,
951951
rcstr!("`matcher` needs to be a static string or array of static strings"),
952952
Some(value),
953-
IssueSeverity::Warning,
953+
IssueSeverity::Error,
954954
)
955955
.await?
956956
}

0 commit comments

Comments
 (0)