mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
nix search: Don't quietly ignore errors
This commit is contained in:
parent
64d8872900
commit
7c74f075f4
1 changed files with 1 additions and 0 deletions
|
@ -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