Testing patherror fix.

This commit is contained in:
Foil-hat-guy 2025-05-05 01:33:01 +03:00
parent e7b4f5344e
commit 8f6f06dfea
No known key found for this signature in database
GPG key ID: 221CC305A7B23591

View file

@ -1,10 +1,12 @@
package stty package stty
import ( import (
"fmt"
"os" "os"
"os/exec"
"golang.org/x/sys/unix" "golang.org/x/sys/unix"
"golang.org/x/term" "golang.org/x/term"
"os/exec"
) )
type stty interface{ type stty interface{
@ -31,6 +33,8 @@ 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)
fmt.Println(err.Error())
return errStack(ERR_CANNOT_OPEN_FILE(), err) return errStack(ERR_CANNOT_OPEN_FILE(), err)
} }
defer file.Close() defer file.Close()