Show a message box when parsing the YT API response fails

This commit is contained in:
Daniel Schulte 2020-12-02 21:11:44 +01:00
parent c41d8f7157
commit a6fa67bf5a
1 changed files with 1 additions and 0 deletions

1
yt.cpp
View File

@ -63,6 +63,7 @@ static json api_request(const std::string &url, std::map<std::string, std::strin
try { try {
return json::parse(data); return json::parse(data);
} catch (json::exception &err) { } catch (json::exception &err) {
tui_abort("Failed to parse YouTube API response:\n%s", err.what());
} }
return {}; return {};
} }