Skip to content

Commit

Permalink
error messasge is shown when number of patients is out of range(OHDSI…
Browse files Browse the repository at this point in the history
…/WebAPI#1890) (#2554)

Co-authored-by: Sergey Suvorov <sergey.suvorov@odysseusinc.com>
  • Loading branch information
ssuvorov-fls and ssuvorov-fls committed Jun 15, 2021
1 parent f2a3189 commit b5ee9ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/pages/cohort-definitions/cohort-definition-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,8 @@ define(['jquery', 'knockout', 'text!./cohort-definition-manager.html',
this.showSampleCreatingModal(false);
} catch(error) {
console.error(error);
alert('Error when creating sample, please try again later');
alert((error && error.data && error.data.payload && error.data.payload.message) ?
error.data.payload.message : 'Error when creating sample, please try again later');
} finally {
this.newSampleCreatingLoader(false);
}
Expand Down

0 comments on commit b5ee9ff

Please sign in to comment.