Converting pathError to the regular one.
This commit is contained in:
parent
8f6f06dfea
commit
05da51cad0
1 changed files with 1 additions and 3 deletions
4
stty.go
4
stty.go
|
@ -33,9 +33,7 @@ func init() {
|
|||
func ValidateTtyFile(filepath string) error {
|
||||
file, err := os.Open(filepath)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
fmt.Println(err.Error())
|
||||
return errStack(ERR_CANNOT_OPEN_FILE(), err)
|
||||
return errStack(ERR_CANNOT_OPEN_FILE(), fmt.Errorf(err.Error()))
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue