From 88ead94bff7edf66d8216abf6d0cfb3f43f296c8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 6 Mar 2020 06:43:51 +0100 Subject: [PATCH] Use brace initializer for exceptions. --- lib/src/account_mastodon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/account_mastodon.cpp b/lib/src/account_mastodon.cpp index 8a1e157..306479c 100644 --- a/lib/src/account_mastodon.cpp +++ b/lib/src/account_mastodon.cpp @@ -78,7 +78,7 @@ string MastodonAPI::get_stream_id(const stream_type type, { if (!id) { - throw runtime_error("No hashtag given."); + throw runtime_error{"No hashtag given."}; } return string("hashtag_") += id.value(); break; @@ -87,7 +87,7 @@ string MastodonAPI::get_stream_id(const stream_type type, { if (!id) { - throw runtime_error("No list ID given."); + throw runtime_error{"No list ID given."}; } return string("list_") += id.value(); break;