this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

better error message (#895)

authored by

bnewbold and committed by
GitHub
d4a1db15 c1306148

+5 -1
+5 -1
atproto/identity/handle.go
··· 160 160 return "", fmt.Errorf("%w: HTTP well-known body read for %s: %w", ErrHandleResolutionFailed, handle, err) 161 161 } 162 162 line := strings.TrimSpace(string(b)) 163 - return syntax.ParseDID(line) 163 + outDid, err := syntax.ParseDID(line) 164 + if err != nil { 165 + return outDid, fmt.Errorf("bad well-known for %s: %w", handle, err) 166 + } 167 + return outDid, err 164 168 } 165 169 166 170 func (d *BaseDirectory) ResolveHandle(ctx context.Context, handle syntax.Handle) (syntax.DID, error) {