From bfd58c26d50754cd7b362252608c3e0fa88eccb2 Mon Sep 17 00:00:00 2001 From: Maciej Kisielewski Date: Fri, 13 Sep 2019 18:11:12 +0200 Subject: alsa_test: use proper AlsaError --- src/alsa_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/alsa_test.cpp b/src/alsa_test.cpp index 3e9ded51..58a66e8d 100644 --- a/src/alsa_test.cpp +++ b/src/alsa_test.cpp @@ -102,7 +102,7 @@ struct Pcm { auto ec = std::error_code(-res, std::system_category()); auto msg = string("Failed to open device: ") + string(device_name) + string(". ") + string(snd_strerror(res)); - throw std::system_error(ec, msg); + throw AlsaError(msg); } logger.info() << "PCM opened. Name: " << device_name << " PCM handle: " << pcm_handle << " PCM mode: " -- cgit v1.2.3