From d1deb60f3696738556d004bb58e32b1bb10ff206 Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Mon, 2 Jan 2023 19:33:41 -0800 Subject: [PATCH] Fix some result codes not getting recognized as errors --- ctru-rs/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctru-rs/src/error.rs b/ctru-rs/src/error.rs index 18fd175..44c9d41 100644 --- a/ctru-rs/src/error.rs +++ b/ctru-rs/src/error.rs @@ -21,7 +21,7 @@ impl Try for ResultCode { } fn branch(self) -> ControlFlow { - if self.0 < 0 { + if self.0 != 0 { ControlFlow::Break(self.into()) } else { ControlFlow::Continue(())