diff options
Diffstat (limited to 'internal/jail/mount_linux.go')
-rw-r--r-- | internal/jail/mount_linux.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/jail/mount_linux.go b/internal/jail/mount_linux.go index 7b3eb56e..54093c40 100644 --- a/internal/jail/mount_linux.go +++ b/internal/jail/mount_linux.go @@ -33,7 +33,7 @@ func (j *Jail) mount() error { for dest, src := range j.bindMounts { var opts uintptr = unix.MS_BIND | unix.MS_REC if err := unix.Mount(src, dest, "none", opts, ""); err != nil { - return fmt.Errorf("Failed to bind mount %s on %s. %s", src, dest, err) + return fmt.Errorf("failed to bind mount %s on %s. %s", src, dest, err) } } @@ -46,7 +46,7 @@ func (j *Jail) unmount() error { // A second invocation on unmount with MNT_DETACH flag will return EINVAL // there's no need to abort with an error if bind mountpoint is already unmounted if err != unix.EINVAL { - return fmt.Errorf("Failed to unmount %s. %s", dest, err) + return fmt.Errorf("failed to unmount %s. %s", dest, err) } } } |