From 05da51cad0fe9a8755cbcdcb8baa81532a9cdd26 Mon Sep 17 00:00:00 2001 From: Foil-hat-guy Date: Mon, 5 May 2025 01:37:31 +0300 Subject: [PATCH] Converting pathError to the regular one. --- stty.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stty.go b/stty.go index 14d86cd..91ed115 100644 --- a/stty.go +++ b/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()