Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
MORE-Platform#227 show detailed error messages on study start
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kurz committed Mar 29, 2024
1 parent 87703df commit 85e9caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/studyStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const useStudyStore = defineStore('study', () => {
});
})
.catch((e: AxiosError) => {
alert('Could not update study status');
alert(`Could not update study status: ${(e.response?.data as any)?.message}`);

Check warning on line 70 in src/stores/studyStore.ts

View workflow job for this annotation

GitHub Actions / Run Tests

Replace ``Could·not·update·study·status:·${(e.response?.data·as·any)?.message}`` with `⏎··············`Could·not·update·study·status:·${⏎················(e.response?.data·as·any)?.message⏎··············}`⏎············`
handleIndividualError(
e,
'Could not update study status' + study.value.studyId
Expand All @@ -80,7 +80,7 @@ export const useStudyStore = defineStore('study', () => {
study.value.status = status;
})
.catch((e: AxiosError) => {
alert('Could not update study status');
alert(`Could not update study status: ${(e.response?.data as any)?.message}`);

Check warning on line 83 in src/stores/studyStore.ts

View workflow job for this annotation

GitHub Actions / Run Tests

Replace ``Could·not·update·study·status:·${(e.response?.data·as·any)?.message}`` with `⏎··············`Could·not·update·study·status:·${⏎················(e.response?.data·as·any)?.message⏎··············}`⏎············`
handleIndividualError(
e,
'Could not update study status' + study.value.studyId
Expand Down

0 comments on commit 85e9caf

Please sign in to comment.