fix: eslint

This commit is contained in:
iCrawl 2017-12-07 19:49:27 +01:00
parent 5bfaaea1c2
commit 51a076d02a
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE

View file

@ -124,7 +124,7 @@ function initRPC(clientID: string): void {
if (reconnectCounter >= config.get('reconnectThreshold')) destroyRPC();
else return;
}
if(!config.get('silent')) {
if (!config.get('silent')) {
if (error.message.includes('ENOENT')) window.showErrorMessage('No Discord Client detected!');
else window.showErrorMessage(`Couldn't connect to discord via rpc: ${error.message}`);
}