diff --git a/utils.js b/utils.js index a3eae12..2238086 100644 --- a/utils.js +++ b/utils.js @@ -33,7 +33,7 @@ export async function requestTicket (username, password) { return response; }) .catch((error) => { - if (error instanceof AuthenticationError) { + if (error instanceof ResponseError) { throw error; } throw new NetworkError(error); @@ -73,7 +73,7 @@ export async function request (path, method, body) { return response; }) .catch((error) => { - if (error instanceof AuthenticationError) { + if (error instanceof ResponseError) { throw error; } throw new NetworkError(error);