summaryrefslogtreecommitdiffstats
path: root/core/data.go
diff options
context:
space:
mode:
authorbt <bt@localhost>2026-03-31 09:01:29 +0200
committerbt <bt@localhost>2026-03-31 10:38:03 +0200
commit75504a81885db55a3f5f9041dcda6b9d2ef421b2 (patch)
treeb2b254240ec380b875380f5390d30dfa9cb0ad42 /core/data.go
parent5e8c7c1c967f01f588655aced32b6b4ca6408850 (diff)
downloadsolec-75504a81885db55a3f5f9041dcda6b9d2ef421b2.tar.gz
solec-75504a81885db55a3f5f9041dcda6b9d2ef421b2.zip
[daemon] Better error handling
Diffstat (limited to 'core/data.go')
-rw-r--r--core/data.go2
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