summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/fs/overlay.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fs/overlay.go b/pkg/sentry/fs/overlay.go
index 036c0f733..8ace4ee64 100644
--- a/pkg/sentry/fs/overlay.go
+++ b/pkg/sentry/fs/overlay.go
@@ -95,10 +95,10 @@ func isXattrOverlay(name string) bool {
// - lower must not have dynamic file/directory content.
func NewOverlayRoot(ctx context.Context, upper *Inode, lower *Inode, flags MountSourceFlags) (*Inode, error) {
if !IsDir(upper.StableAttr) {
- return nil, fmt.Errorf("upper Inode is not a directory")
+ return nil, fmt.Errorf("upper Inode is a %v, not a directory", upper.StableAttr.Type)
}
if !IsDir(lower.StableAttr) {
- return nil, fmt.Errorf("lower Inode is not a directory")
+ return nil, fmt.Errorf("lower Inode is a %v, not a directory", lower.StableAttr.Type)
}
if upper.overlay != nil {
return nil, fmt.Errorf("cannot nest overlay in upper file of another overlay")