From d280e4990cd44a694621405b0a68c80707c25e89 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Tue, 6 Aug 2024 20:48:48 -0700 Subject: [PATCH] oops: fix warning about catching polymorphic exception This was introduced in I0fc80718eb7e02d84cc4b5d5deec4c0f41116134 and unnoticed since it only appears in gcc builds. Change-Id: I1de80ce2a8fab63efdca7ca0de2a302ceb118267 --- src/libstore/filetransfer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc index 566dc65d4..9cb805444 100644 --- a/src/libstore/filetransfer.cc +++ b/src/libstore/filetransfer.cc @@ -479,7 +479,7 @@ struct curlFileTransfer : public FileTransfer { try { stopWorkerThread(); - } catch (nix::Error e) { + } catch (nix::Error & e) { // This can only fail if a socket to our own process cannot be // written to, so it is always a bug in the program if it fails. //