We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8175986 commit f603bc5Copy full SHA for f603bc5
demo/dynamic_configuration/main.go
@@ -2,7 +2,6 @@ package main
2
3
import (
4
"context"
5
- "errors"
6
"fmt"
7
8
"google.golang.org/grpc"
@@ -38,7 +37,7 @@ func main() {
38
37
panic(err)
39
}
40
if hello.Hello != "goodbye, eva" {
41
- panic(errors.New(fmt.Sprintf("Assertion failed! Result is %v", hello.Hello)))
+ panic(fmt.Errorf("Assertion failed! Result is %v", hello.Hello))
42
43
fmt.Println(hello.Hello)
44
0 commit comments