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

@@ -3,7 +3,7 @@ package errors
import (
"fmt"
"gemini-grc/errors"
"github.com/antanst/go_errors"
)
// HostError is an error encountered while
@@ -30,7 +30,7 @@ func IsHostError(err error) bool {
return false
}
var asError *HostError
return errors.As(err, &asError)
return go_errors.As(err, &asError)
}
// Sentinel errors used for their string message primarily.