Ignore:
Timestamp:
03/03/10 13:19:15 (14 years ago)
Author:
patdui
Message:
  • some better error handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/ComponentRegistryImpl.java

    r207 r208  
    330330    private void checkAuthorisation(AbstractDescription desc, Principal principal) throws UserUnauthorizedException {
    331331        if (!principal.getName().equals(desc.getCreatorName())) {
    332             throw new UserUnauthorizedException("Unauthorized operation user: " + principal.getName()
    333                     + " was not the creator of profile/component (description=" + desc + ").");
     332            throw new UserUnauthorizedException("Unauthorized operation user '" + principal.getName()
     333                    + "' was not the creator of profile/component (description=" + desc + ").");
    334334        }
    335335    }
Note: See TracChangeset for help on using the changeset viewer.