From fb0dbd91617e3aa6463f5352fa49355cbcdc5439 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Tue, 22 Jan 2019 18:04:45 +0100 Subject: [PATCH] Use the explicit exception type instead of the ellipsis (#258) Use the explicit exception type instead of the ellipsis where the type is known. --- HeterogeneousCore/CUDACore/src/GPUCuda.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HeterogeneousCore/CUDACore/src/GPUCuda.cc b/HeterogeneousCore/CUDACore/src/GPUCuda.cc index 154c3edf80411..3b5b52b3e532f 100644 --- a/HeterogeneousCore/CUDACore/src/GPUCuda.cc +++ b/HeterogeneousCore/CUDACore/src/GPUCuda.cc @@ -84,7 +84,7 @@ namespace heterogeneous { auto error = cudaGetErrorName(status); auto message = cudaGetErrorString(status); throw cms::Exception("CUDAError") << "Callback of CUDA stream " << streamId << " in device " << deviceId << " error " << error << ": " << message; - } catch(...) { + } catch(cms::Exception &) { waitingTaskHolder.doneWaiting(std::current_exception()); } }