diff options
| author | Julian Hurst <ark@mansus.space> | 2022-06-09 16:04:08 +0200 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2022-06-09 16:04:08 +0200 |
| commit | 881af93c63b4736d0f1f1ab543c383532caaf3ae (patch) | |
| tree | 850a6d24e4cbf32efa28ef26d65b5a3af3fa6b81 /imp.ha | |
| parent | f9bd71ba39272caa99069f01068bc12f04ec40de (diff) | |
| download | imp-881af93c63b4736d0f1f1ab543c383532caaf3ae.tar.gz | |
Fix non-exhaustive match leading to compiler bug if gpg fails
Diffstat (limited to 'imp.ha')
| -rw-r--r-- | imp.ha | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |
