Skip to content

Commit

Permalink
Add error log
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed May 9, 2024
1 parent c169068 commit 213491a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions teachertool/src/components/CatalogOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ const CatalogList: React.FC = () => {

const tags = Object.keys(criteriaGroupedByTag);
if (tags.length === 0) {
logError(ErrorCode.noCatalogCriteria);
return null;
}

Expand Down
1 change: 1 addition & 0 deletions teachertool/src/types/errorCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ export enum ErrorCode {
invalidValidatorPlan = "invalidValidatorPlan",
askCopilotQuestion = "askCopilotQuestion",
missingTag = "missingTag",
noCatalogCriteria = "noCatalogCriteria"
}

0 comments on commit 213491a

Please sign in to comment.