forked from lix-project/lix
nix search: Don't quietly ignore errors
This commit is contained in:
parent
64d8872900
commit
7c74f075f4
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue