11 // Report gives off a warning requesting the user to submit an issue to the github tracker.
12 func Report(extra ...interface{}) {
13 fmt.Fprintln(os.Stderr, "You've encountered a sought after, hard to reproduce bug. Please report this to the developers <3 https://github.com/ethereum/go-ethereum/issues")
14 fmt.Fprintln(os.Stderr, extra...)
16 _, file, line, _ := runtime.Caller(1)
17 fmt.Fprintf(os.Stderr, "%v:%v\n", file, line)
21 fmt.Fprintln(os.Stderr, "#### BUG! PLEASE REPORT ####")
24 // PrintDepricationWarning prinst the given string in a box using fmt.Println.
25 func PrintDepricationWarning(str string) {
26 line := strings.Repeat("#", len(str)+4)
27 emptyLine := strings.Repeat(" ", len(str))
35 `, line, emptyLine, str, emptyLine, line)