Skip to content

Commit b485a30

Browse files
committed
fix: fixed bad inequality in default error views
1 parent c5dc4a6 commit b485a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/perseus/src/error_views.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl<G: Html> ErrorViews<G> {
148148
Self::new(|cx, err, _, pos| {
149149
match err {
150150
// Special case for 404 due to its frequency
151-
ClientError::ServerError { status, .. } if status != 404 => (
151+
ClientError::ServerError { status, .. } if status == 404 => (
152152
view! { cx,
153153
title { "Page not found" }
154154
},

0 commit comments

Comments
 (0)