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;