oops: fix warning about catching polymorphic exception

This was introduced in I0fc80718eb7e02d84cc4b5d5deec4c0f41116134 and
unnoticed since it only appears in gcc builds.

Change-Id: I1de80ce2a8fab63efdca7ca0de2a302ceb118267
This commit is contained in:
Jade Lovelace 2024-08-06 20:48:48 -07:00
parent 529eed74c4
commit d280e4990c

View file

@ -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.
//