about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-09T12·46+0200
committerEelco Dolstra <edolstra@gmail.com>2019-10-09T14·23+0200
commit1b78bbb4144c6ad4ef15f7a10fd9d479e06df5da (patch)
tree37688d080d529967b0d98f6aacc9981cdab49554 /src
parent1d5cb6ad4839a50a96c27c94f19adcb97b6391af (diff)
nix search: Don't quietly ignore errors
(cherry picked from commit 7c74f075f4a7274ad38c90085cc269a19a977438)
Diffstat (limited to 'src')
-rw-r--r--src/nix/search.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/search.cc b/src/nix/search.cc
index e086de2260a6..29e1cc5f6b36 100644
--- a/src/nix/search.cc
+++ b/src/nix/search.cc
@@ -265,6 +265,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)