diff options
| author | bt <bt@localhost> | 2026-03-31 09:01:29 +0200 |
|---|---|---|
| committer | bt <bt@localhost> | 2026-03-31 10:38:03 +0200 |
| commit | 75504a81885db55a3f5f9041dcda6b9d2ef421b2 (patch) | |
| tree | b2b254240ec380b875380f5390d30dfa9cb0ad42 /core/data.go | |
| parent | 5e8c7c1c967f01f588655aced32b6b4ca6408850 (diff) | |
| download | solec-75504a81885db55a3f5f9041dcda6b9d2ef421b2.tar.gz solec-75504a81885db55a3f5f9041dcda6b9d2ef421b2.zip | |
[daemon] Better error handling
Diffstat (limited to 'core/data.go')
| -rw-r--r-- | core/data.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/data.go b/core/data.go index 9783c47..a96b56f 100644 --- a/core/data.go +++ b/core/data.go @@ -182,7 +182,7 @@ func decodeString(buf io.Reader, ptr *string) error { func ReadAddr(addr string) (string, string, error) { channel, host, ok := strings.Cut(addr, "@") if !ok { - return "", "", fmt.Errorf("invalid address") + return "", "", ErrInvalidAddress } return channel, host, nil |
