diff options
Diffstat (limited to 'pkg/syserr/syserr.go')
-rw-r--r-- | pkg/syserr/syserr.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/syserr/syserr.go b/pkg/syserr/syserr.go index eaa0ec920..5d9fa24de 100644 --- a/pkg/syserr/syserr.go +++ b/pkg/syserr/syserr.go @@ -31,6 +31,8 @@ type Error struct { } // New creates a new Error and adds a translation for it. +// +// New must only be called at init. func New(message string, linuxTranslation *linux.Errno) *Error { err := &Error{message} linuxABITranslations[err] = linuxTranslation |