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 {
|
func ValidateTtyFile(filepath string) error {
|
||||||
file, err := os.Open(filepath)
|
file, err := os.Open(filepath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
return errStack(ERR_CANNOT_OPEN_FILE(), fmt.Errorf(err.Error()))
|
||||||
fmt.Println(err.Error())
|
|
||||||
return errStack(ERR_CANNOT_OPEN_FILE(), err)
|
|
||||||
}
|
}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue