Skip to content

Commit

Permalink
Add debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
sanders41 committed Aug 6, 2023
1 parent 2fa853b commit 0e3d42a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/lib/components/AccountInfoForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { isLoading, isLoggedIn, accessToken } from '$lib/stores/stores';
import Input from '$lib/components/Input.svelte';
import ErrorMessage from '$lib/components/ErrorMessage.svelte';
import { API } from '$lib/variables';
interface User {
id?: string;
Expand Down Expand Up @@ -149,8 +150,7 @@
} catch (error) {
console.log(error);
genericError = true;
genericErrorMessage =
'An error occurred trying to connect to the sever. Please try again later.';
genericErrorMessage = `An error occurred trying to connect to the sever. Please try again later. ${API}`;
isLoading.set(false);
return;
}
Expand All @@ -176,8 +176,7 @@
return;
} else {
genericError = true;
genericErrorMessage =
'An error occurred trying to connect to the sever. Please try again later.';
genericErrorMessage = `An error occurred trying to connect to the sever. Please try again later.`;
isLoading.set(false);
return;
}
Expand Down

0 comments on commit 0e3d42a

Please sign in to comment.