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
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()