Skip to content

Commit

Permalink
Fix error message capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoack committed Aug 27, 2021
1 parent 051f225 commit 0a9e761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion landlock/restrict.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func restrictPaths(c Config, opts ...PathOpt) error {
fd, err := ll.LandlockCreateRuleset(&rulesetAttr, 0)
if err != nil {
if errors.Is(err, syscall.ENOSYS) || errors.Is(err, syscall.EOPNOTSUPP) {
err = errors.New("Landlock is not supported by kernel or not enabled at boot time")
err = errors.New("landlock is not supported by kernel or not enabled at boot time")
}
if errors.Is(err, syscall.EINVAL) {
err = errors.New("unknown flags, unknown access, or too small size")
Expand Down

0 comments on commit 0a9e761

Please sign in to comment.