~egtann/shh

ref: v1.9.0 shh/error.go -rw-r--r-- 246 bytes
53855162 — Evan Tann update install instructions, add man page 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import "fmt"

type emptyArgError struct{}

func (e *emptyArgError) Error() string {
	return "bad args"
}

type badArgError struct{ Arg string }

func (e *badArgError) Error() string {
	return fmt.Sprintf("unknown arg: %s", e.Arg)
}