Added case for 404 error on recommended endpoint.

This commit is contained in:
flash 2025-04-22 22:21:46 +00:00
parent af9d917157
commit 75bdcae2d3
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E

View file

@ -138,6 +138,8 @@ const Flashii = function(baseUrl) {
if(status === 400)
throw new Error('An argument contains an unsupported value.');
if(status === 404)
throw new Error('Was unable to determine a server based on the requested parameters.');
if(status > 299)
throw new Error(`Failed to fetch chat server list with error code ${status}.`);