diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09 14:46:58 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-10-09 14:46:58 +0200 |
commit | 7c74f075f4a7274ad38c90085cc269a19a977438 (patch) | |
tree | 46f6059a848714e16b317c63823d7cda2fa9c043 /src/nix/search.cc | |
parent | 64d88729005841ff3ccfa75134f9aa5e5828da6d (diff) |
nix search: Don't quietly ignore errors
Diffstat (limited to 'src/nix/search.cc')
-rw-r--r-- | src/nix/search.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/search.cc b/src/nix/search.cc index 764dcb70a..eb75493e4 100644 --- a/src/nix/search.cc +++ b/src/nix/search.cc @@ -261,6 +261,7 @@ struct CmdSearch : SourceExprCommand, MixJSON https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145 */ if (!jsonCacheFile) throw Error("error writing to %s", tmpFile); + throw; } if (writeCache && rename(tmpFile.c_str(), jsonCacheFileName.c_str()) == -1) |