From 8f6f06dfea310544108e29863a8f5788de642c1d Mon Sep 17 00:00:00 2001 From: Foil-hat-guy Date: Mon, 5 May 2025 01:33:01 +0300 Subject: [PATCH] Testing patherror fix. --- stty.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stty.go b/stty.go index 943c784..14d86cd 100644 --- a/stty.go +++ b/stty.go @@ -1,10 +1,12 @@ package stty import ( + "fmt" "os" - "golang.org/x/sys/unix" - "golang.org/x/term" "os/exec" + + "golang.org/x/sys/unix" + "golang.org/x/term" ) type stty interface{ @@ -31,6 +33,8 @@ 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) } defer file.Close()