chore: use Go 1.26 (#26786)
This commit is contained in:
parent
88ecd6f152
commit
0ee6d787e1
33 changed files with 96 additions and 122 deletions
|
|
@ -18,11 +18,11 @@ func ErrorAsJson(err error) any {
|
|||
Error: err.Error(),
|
||||
}
|
||||
|
||||
if ae := new(api.ErrLoginRequired); errors.As(err, &ae) {
|
||||
if ae, ok := errors.AsType[*api.ErrLoginRequired](err); ok {
|
||||
res.LoginRequired = ae.ProviderAuth
|
||||
}
|
||||
|
||||
if ue := new(api.ErrUrl); errors.As(err, &ue) {
|
||||
if ue, ok := errors.AsType[*api.ErrUrl](err); ok {
|
||||
res.URI = ue.URL().String()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue