Added case for 404 error on recommended endpoint.
This commit is contained in:
parent
af9d917157
commit
75bdcae2d3
1 changed files with 2 additions and 0 deletions
|
@ -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}.`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue