Use go_errors library everywhere.

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

View File

@@ -3,7 +3,7 @@ package gemini
import (
"fmt"
"gemini-grc/errors"
"github.com/antanst/go_errors"
)
// GeminiError is used to represent
@@ -48,5 +48,5 @@ func IsGeminiError(err error) bool {
return false
}
var asError *GeminiError
return errors.As(err, &asError)
return go_errors.As(err, &asError)
}