Skip to content

Commit

Permalink
[backend] add doc code in error
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyCloarec committed Nov 29, 2024
1 parent a57cb84 commit c9cd068
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ const validateIndicatorPattern = async (context: AuthContext, user: AuthUser, pa
const exclusionListCheck = await checkObservableValue(observableValues[i]);
if (exclusionListCheck) {
throw FunctionalError(`Indicator of type ${patternType} is contained in exclusion list.`, {
doc_code: 'INDICATOR_FORMAT_EXCLUDED',
excludedValue: exclusionListCheck.value,
exclusionList: exclusionListCheck.listId
});
Expand Down

0 comments on commit c9cd068

Please sign in to comment.