Skip to content

Commit

Permalink
fix: return errno instead of err for namespace entry
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpig committed Dec 27, 2024
1 parent c865ec1 commit 9d9d69b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ mv tmp/bin/brownie ~/.local/bin
---

I'm developing `brownie` on the following environment. Even with the same set up, YMMV.
You can spin up this VM from the included `Vagrantfile`, just run `vagrant up`.

- `Linux vagrant 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux`
- `go version go1.23.4 linux/amd64`
- `Docker version 27.3.1, build ce12230`

You can spin up this VM from the included `Vagrantfile`, just run `vagrant up`.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion namespace/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (ns *LinuxNamespace) Enter() error {

_, _, errno := syscall.RawSyscall(unix.SYS_SETNS, uintptr(fd), 0, 0)
if errno != 0 {
return fmt.Errorf("errno: %w", err)
return fmt.Errorf("errno: %w", errno)
}

return nil
Expand Down

0 comments on commit 9d9d69b

Please sign in to comment.