Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

fix: error returned by mount #1555

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions utils/fsutils/mount/unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ type MountError struct {
Msg string
}

func (e MountError) Error() string {
func (e *MountError) Error() string {
if e.Msg != "" {
return fmt.Sprintf("%s: %s", e.Kind, e.Msg)
}

return e.Kind.String()
}

func NewMountError(errCode int, errMsg string) MountError {
return MountError{
func NewMountError(errCode int, errMsg string) *MountError {
return &MountError{
Kind: NewMountErrorKind(errCode),
Msg: errMsg,
}
Expand Down
Loading