mirror of https://github.com/Lissy93/dashy.git
Syntactic improvments, and linting ping.js
This commit is contained in:
parent
77ca662f37
commit
106103a7df
|
@ -22,7 +22,7 @@ const makeMessageText = (data) => `${data.successStatus ? '✅' : '⚠️'} `
|
|||
const makeErrorMessage = (data) => `❌ Service Unavailable: ${data.hostname || 'Server'} `
|
||||
+ `resulted in ${data.code || 'a fatal error'} ${data.errno ? `(${data.errno})` : ''}`;
|
||||
|
||||
const makeErrorMessage2 = (data) => `❌ Service Error - `
|
||||
const makeErrorMessage2 = (data) => '❌ Service Error - '
|
||||
+ `${data.status} - ${data.statusText}`;
|
||||
|
||||
/* Kicks of a HTTP request, then formats and renders results */
|
||||
|
|
Loading…
Reference in New Issue