Skip to content

Commit 0eef495

Browse files
committed
💚 fix: build error on use not exists method
1 parent b75c6fa commit 0eef495

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ func exampleExecute(c *gcli.Command, args []string) error {
480480
color.Infoln("hello, in example command")
481481

482482
if exampleOpts.showErr {
483-
return c.Errorf("OO, An error has occurred!!")
483+
return c.NewErrf("OO, An error has occurred!!")
484484
}
485485

486486
magentaln := color.Magenta.Println

builtin/reverseproxy/reverse_proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var ReverseProxyCmd = &gcli.Command{
5858

5959
func (rp *reverseProxy) Run(cmd *gcli.Command, args []string) error {
6060
if rp.remote == "" {
61-
return cmd.Errorf("must be setting the remote server by -r, --remote ")
61+
return cmd.NewErrf("must be setting the remote server by -r, --remote ")
6262
}
6363

6464
urlObj, err := url.Parse(rp.remote)

0 commit comments

Comments
 (0)