Error message adjustments.

This commit is contained in:
flash 2025-04-22 22:22:54 +00:00
parent 75bdcae2d3
commit 741ab488ca
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E

View file

@ -122,7 +122,7 @@ const Flashii = function(baseUrl) {
if(status === 404)
throw new Error('No chat server with that id could be found.');
if(status > 299)
throw new Error(`Failed to fetch server list with error code ${status}.`);
throw new Error(`Failed to fetch chat server with error code ${status}.`);
return body;
};
@ -141,7 +141,7 @@ const Flashii = function(baseUrl) {
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}.`);
throw new Error(`Failed to fetch recommendd chat server with error code ${status}.`);
return body;
};