Use go_errors library everywhere.

This commit is contained in:
2025-02-26 13:31:46 +02:00
parent c82b436d32
commit 9dc008cb0f
17 changed files with 66 additions and 353 deletions

View File

@@ -1,8 +1,6 @@
package gopher
import (
"gemini-grc/errors"
)
import "github.com/antanst/go_errors"
// GopherError is an error encountered while
// visiting a Gopher host, and is only for
@@ -28,5 +26,5 @@ func IsGopherError(err error) bool {
return false
}
var asError *GopherError
return errors.As(err, &asError)
return go_errors.As(err, &asError)
}