diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-08-06 20:48:48 -0700 |
---|---|---|
committer | Jade Lovelace <lix@jade.fyi> | 2024-08-06 22:45:19 -0700 |
commit | d280e4990cd44a694621405b0a68c80707c25e89 (patch) | |
tree | 2d35b0a43d6b4837bcfa73e109c14c5cac9b82f3 | |
parent | 529eed74c477eee8567f28379210cd47f0b4e18f (diff) |
oops: fix warning about catching polymorphic exception
This was introduced in I0fc80718eb7e02d84cc4b5d5deec4c0f41116134 and
unnoticed since it only appears in gcc builds.
Change-Id: I1de80ce2a8fab63efdca7ca0de2a302ceb118267
-rw-r--r-- | src/libstore/filetransfer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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. // |