Skip to content

Commit

Permalink
fix: error message showing
Browse files Browse the repository at this point in the history
  • Loading branch information
52funny authored and 52funny committed Aug 16, 2024
1 parent 6325bc5 commit fc174e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/new/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var NewUrlCommand = &cobra.Command{
if strings.TrimSpace(input) != "" {
f, err := os.OpenFile(input, os.O_RDONLY, 0666)
if err != nil {
logrus.Errorln("Open file %s failed:", input, err)
logrus.Errorf("Open file %s failed: %s", input, err)
return
}
reader := bufio.NewReader(f)
Expand Down

0 comments on commit fc174e7

Please sign in to comment.