summaryrefslogtreecommitdiff
path: root/src
diff options
authorMaciej Kisielewski <maciej.kisielewski@canonical.com>2019-09-13 18:11:12 +0200
committerMaciej Kisielewski <maciej.kisielewski@canonical.com>2019-09-13 18:11:12 +0200
commitbfd58c26d50754cd7b362252608c3e0fa88eccb2 (patch)
treea3dd19686a1ebbe25ce0d30ea6af349dd52cdefe /src
parent773339d3688089e418fed13f20732e8486034968 (diff)
alsa_test: use proper AlsaError
Diffstat (limited to 'src')
-rw-r--r--src/alsa_test.cpp2
1 files changed, 1 insertions, 1 deletions
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: "