style: change string for error message

This commit is contained in:
iCrawl 2017-11-24 03:33:50 +01:00
parent ff7e8a19ac
commit fd5a243683
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE

View file

@ -84,7 +84,7 @@ function initRPC(clientID: string): void {
rpc.login(clientID).catch(error => { rpc.login(clientID).catch(error => {
if (reconnect && !error.message.includes('ENOENT')) return; if (reconnect && !error.message.includes('ENOENT')) return;
if (error.message.includes('ENOENT')) window.showErrorMessage('No Discord Client detected!'); if (error.message.includes('ENOENT')) window.showErrorMessage('No Discord Client detected!');
else window.showErrorMessage(`Could not connect to discord via rpc: ${error.message}`); else window.showErrorMessage(`Couldn't connect to discord via rpc: ${error.message}`);
}); });
} }