Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Jul 12, 2019
1 parent 129e921 commit 6f00f95
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -773,7 +773,7 @@ public SearchHierarchyConstraints determineSearchHierarchyConstraints(final Prov
if (baseContextRef != null) {
PrismObject<ShadowType> baseContextShadow = resourceObjectReferenceResolver.resolve(ctx, baseContextRef, null, "base context specification in "+objectClassDef, parentResult);
if (baseContextShadow == null) {
throw new ObjectNotFoundException("No base context defined by "+baseContextRef+" in base context specification in "+objectClassDef);
throw new ObjectNotFoundException("Base context not found for "+objectClassDef+", specified as "+baseContextRef);
}
RefinedObjectClassDefinition baseContextObjectClassDefinition = ctx.getRefinedSchema().determineCompositeObjectClassDefinition(baseContextShadow);
baseContextIdentification = ShadowUtil.getResourceObjectIdentification(baseContextShadow, baseContextObjectClassDefinition);
Expand Down

0 comments on commit 6f00f95

Please sign in to comment.