Skip to content

Commit

Permalink
Merge pull request #413 from redlink-gmbh/#mpa-227-show-correct-error…
Browse files Browse the repository at this point in the history
…-msg-on-study-activate

Show Detailed Error-Messages on Study Start
  • Loading branch information
alireza-dhp authored Apr 18, 2024
2 parents 667ea4d + 3359d3c commit cf75390
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/stores/studyStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ 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
}`
);
handleIndividualError(
e,
'Could not update study status' + study.value.studyId
Expand All @@ -80,7 +84,11 @@ 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
}`
);
handleIndividualError(
e,
'Could not update study status' + study.value.studyId
Expand Down

0 comments on commit cf75390

Please sign in to comment.