Skip to content

Commit

Permalink
comment errors (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paurikova2 authored Aug 7, 2024
1 parent 35e3587 commit 3a8443b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public List<ClarinLicense> findAll(Context context) throws SQLException, Authori
public void delete(Context context, ClarinLicense clarinLicense) throws SQLException, AuthorizeException {
if (!authorizeService.isAdmin(context)) {
throw new AuthorizeException(
"You must be an admin to create an CLARIN License");
"You must be an admin to delete an CLARIN License");
}

clarinLicenseDAO.delete(context, clarinLicense);
Expand All @@ -203,7 +203,7 @@ public void delete(Context context, ClarinLicense clarinLicense) throws SQLExcep
public void update(Context context, ClarinLicense newClarinLicense) throws SQLException, AuthorizeException {
if (!authorizeService.isAdmin(context)) {
throw new AuthorizeException(
"You must be an admin to create an CLARIN License");
"You must be an admin to update an CLARIN License");
}

if (Objects.isNull(newClarinLicense)) {
Expand Down

0 comments on commit 3a8443b

Please sign in to comment.