Update Lidarr Error.
This commit is contained in:
parent
6829352eed
commit
0e6dbf6ecb
|
@ -17,11 +17,11 @@ try
|
||||||
let apiCheck = await fetch(`${ lidarrUrl }/api?apikey=${ apiKey }`);
|
let apiCheck = await fetch(`${ lidarrUrl }/api?apikey=${ apiKey }`);
|
||||||
apiCheck = await apiCheck.json();
|
apiCheck = await apiCheck.json();
|
||||||
if (!Object.prototype.hasOwnProperty.call(apiCheck, `current`))
|
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
|
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);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue