Fixing issues

This commit is contained in:
Caleb Gardner
2022-06-18 06:30:04 -05:00
parent cde6a265a1
commit 9ac8fef3b2
13 changed files with 189 additions and 425 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"encoding/binary"
"errors"
"io"
"strconv"
)
const (
@@ -72,7 +73,7 @@ func Read(r io.Reader, blockSize uint32) (i Inode, err error) {
case ESock:
i.Data, err = ReadEIPC(r)
default:
return i, errors.New("invalid inode type")
return i, errors.New("invalid inode type " + strconv.Itoa(int(i.Type)))
}
return
}