added try catch in nm (#2785)

* added try catch in nm

* changelog

* asdf

* gh action
This commit is contained in:
fourtf
2021-05-16 18:51:25 +02:00
committed by GitHub
parent 6732b25f36
commit 6ae8427fc6
4 changed files with 52 additions and 18 deletions
+11
View File
@@ -7,6 +7,7 @@
#include "Application.hpp"
#include "common/Version.hpp"
#include "singletons/Fonts.hpp"
#include "singletons/NativeMessaging.hpp"
#include "singletons/Paths.hpp"
#include "singletons/Theme.hpp"
#include "singletons/WindowManager.hpp"
@@ -442,6 +443,16 @@ void GeneralPage::initLayout(GeneralPageView &layout)
layout.addDescription("The browser extension replaces the default "
"Twitch.tv chat with chatterino.");
{
if (auto err = nmIpcError().get())
{
layout.addDescription(
"An error happened during initialization of the "
"browser extension: " +
*err);
}
}
layout.addDescription(formatRichNamedLink(
CHROME_EXTENSION_LINK,
"Download for Google Chrome and similar browsers."));