about summary refs log tree commit diff
path: root/third_party/nix/src/nix/search.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/search.cc')
-rw-r--r--third_party/nix/src/nix/search.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/search.cc b/third_party/nix/src/nix/search.cc
index b7cb586b0f4d..f44269eee5c1 100644
--- a/third_party/nix/src/nix/search.cc
+++ b/third_party/nix/src/nix/search.cc
@@ -244,7 +244,9 @@ struct CmdSearch : SourceExprCommand, MixJSON {
         /* Fun fact: catching std::ios::failure does not work
            due to C++11 ABI shenanigans.
            https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145 */
-        if (!jsonCacheFile) throw Error("error writing to %s", tmpFile);
+        if (!jsonCacheFile) {
+          throw Error("error writing to %s", tmpFile);
+        }
         throw;
       }