From 1b78bbb4144c6ad4ef15f7a10fd9d479e06df5da Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Oct 2019 14:46:58 +0200 Subject: nix search: Don't quietly ignore errors (cherry picked from commit 7c74f075f4a7274ad38c90085cc269a19a977438) --- src/nix/search.cc | 1 + 1 file changed, 1 insertion(+) 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) -- cgit 1.4.1