HDFS-13357. Improve AclException message "Invalid ACL: only directories may have a default ACL.". Contributed by Gabor Bota.
This commit is contained in:
parent
431076f637
commit
ad10cbd91b
|
@ -281,7 +281,8 @@ public final class AclStorage {
|
||||||
// Only directories may have a default ACL.
|
// Only directories may have a default ACL.
|
||||||
if (!defaultEntries.isEmpty() && !inode.isDirectory()) {
|
if (!defaultEntries.isEmpty() && !inode.isDirectory()) {
|
||||||
throw new AclException(
|
throw new AclException(
|
||||||
"Invalid ACL: only directories may have a default ACL.");
|
"Invalid ACL: only directories may have a default ACL. "
|
||||||
|
+ "Path: " + inode.getFullPathName());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attach entries to the feature.
|
// Attach entries to the feature.
|
||||||
|
|
Loading…
Reference in New Issue