about summary refs log tree commit diff
path: root/src/nix/search.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/search.cc')
-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)