From 881af93c63b4736d0f1f1ab543c383532caaf3ae Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Thu, 9 Jun 2022 16:04:08 +0200 Subject: Fix non-exhaustive match leading to compiler bug if gpg fails --- imp.ha | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imp.ha b/imp.ha index 57226a7..d9ed16e 100644 --- a/imp.ha +++ b/imp.ha @@ -311,8 +311,9 @@ fn decrypt(file: str) ([]u8 | os::exec::error | io::error) = { io::close(pipe_stdout.0)?; let status = os::exec::wait(&proc)?; + match (os::exec::check(&status)) { - case let e: os::exec::exit_status => + case let e: !os::exec::exit_status => fmt::fatal(os::exec::exitstr(e)); case void => yield; -- cgit v1.2.3