File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
service/common/src/main/java/org/apache/polaris/service/catalog/iceberg Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1113,9 +1113,12 @@ private void validateNoLocationOverlap(
11131113 new ResolverPath (Arrays .asList (ns .levels ()), PolarisEntityType .NAMESPACE ), ns ));
11141114 ResolverStatus status = resolutionManifest .resolveAll ();
11151115 if (!status .getStatus ().equals (ResolverStatus .StatusEnum .SUCCESS )) {
1116- throw new IllegalStateException (
1117- "Unable to resolve sibling entities to validate location - could not resolve"
1118- + status .getFailedToResolvedEntityName ());
1116+ String message =
1117+ "Unable to resolve sibling entities to validate location - " + status .getStatus ();
1118+ if (status .getStatus ().equals (ResolverStatus .StatusEnum .ENTITY_COULD_NOT_BE_RESOLVED )) {
1119+ message += ". Could not resolve entity: " + status .getFailedToResolvedEntityName ();
1120+ }
1121+ throw new IllegalStateException (message );
11191122 }
11201123
11211124 StorageLocation targetLocation = StorageLocation .of (location );
You can’t perform that action at this time.
0 commit comments