Converting pathError to the regular one.

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

View file

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