Update Lidarr Error.

This commit is contained in:
Chase 2023-02-26 19:43:06 -06:00 committed by GitHub
parent 6829352eed
commit 0e6dbf6ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -17,11 +17,11 @@ try
let apiCheck = await fetch(`${ lidarrUrl }/api?apikey=${ apiKey }`);
apiCheck = await apiCheck.json();
if (!Object.prototype.hasOwnProperty.call(apiCheck, `current`))
throw new Error(`Lidarr API is not available. Do you have the right URL & API Key?`);
throw new Error(`Lidarr API is not available.`);
}
catch
{
console.log(`Lidarr API is not available. Do you have the right URL & API Key?`);
console.log(`Lidarr API is not available.\nDo you have the right URL & API Key?\nYou also need to be on the latest develop version of Lidarr.`);
process.exit(1);
}