Skip to content

Commit

Permalink
Update some error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas ONeil <[email protected]>
  • Loading branch information
loneil committed Jan 5, 2024
1 parent d0df0df commit 582eb55
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async function handleDelete() {
emit('success');
emit('closed');
} catch (err: any) {
console.log(err);
console.error(err);
toast.error('Failure: ${err}');
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const useInnkeeperTenantsStore = defineStore('innkeeperTenants', () => {
})
.catch((err) => {
error.value = err;
console.log(error.value);
console.error(error.value);
})
.finally(() => {
loading.value = false;
Expand Down Expand Up @@ -201,7 +201,7 @@ export const useInnkeeperTenantsStore = defineStore('innkeeperTenants', () => {
})
.catch((err) => {
error.value = err;
console.log(error.value);
console.error(error.value);
})
.finally(() => {
loading.value = false;
Expand Down Expand Up @@ -244,7 +244,7 @@ export const useInnkeeperTenantsStore = defineStore('innkeeperTenants', () => {
})
.catch((err) => {
error.value = err;
console.log(error.value);
console.error(error.value);
})
.finally(() => {
loading.value = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const useInnkeeperTokenStore = defineStore(
})
.catch((err) => {
error.value = err;
console.log(error.value);
console.error(error.value);
})
.finally(() => {
loading.value = false;
Expand Down
6 changes: 3 additions & 3 deletions services/tenant-ui/frontend/src/store/reservationStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const useReservationStore = defineStore('reservation', () => {
})
.catch((err) => {
error.value = err;
console.log(error.value);
console.error(error.value);
})
.finally(() => {
if (!reservation.value?.reservation_pwd) {
Expand Down Expand Up @@ -139,7 +139,7 @@ export const useReservationStore = defineStore('reservation', () => {
status.value = RESERVATION_STATUSES.NOT_FOUND;
} else {
error.value = err;
console.log(error.value);
console.error(error.value);
}
})
.finally(() => {
Expand Down Expand Up @@ -171,7 +171,7 @@ export const useReservationStore = defineStore('reservation', () => {
})
.catch((err) => {
error.value = err;
console.log(error.value);
console.error(error.value);
})
.finally(() => {
loading.value = false;
Expand Down
2 changes: 1 addition & 1 deletion services/tenant-ui/frontend/src/store/tenantStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const useTenantStore = defineStore('tenant', () => {
(res): res is PromiseRejectedResult => res.status === 'rejected'
);
if (errors?.length) {
console.log(errors);
console.error(errors);
throw Error(errors[0]?.reason);
}
}
Expand Down
2 changes: 1 addition & 1 deletion services/tenant-ui/frontend/src/store/tokenStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const useTokenStore = defineStore('token', () => {
})
.catch((err) => {
error.value = err;
console.log(error.value);
console.error(error.value);
})
.finally(() => {
loading.value = false;
Expand Down
2 changes: 1 addition & 1 deletion services/tenant-ui/frontend/src/store/verifierStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const useVerifierStore = defineStore('verifier', () => {
);
listPresentations();
} catch (err) {
console.log(err);
console.error(err);
error.value = err;
} finally {
loading.value = false;
Expand Down

0 comments on commit 582eb55

Please sign in to comment.