Skip to content

Commit

Permalink
Merge pull request #37 from chelnak/fix_error_messages
Browse files Browse the repository at this point in the history
Fix error messages
  • Loading branch information
chelnak authored May 8, 2022
2 parents 55cc726 + 2aaf1cc commit cb1d4c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func init() {
func Execute() int {
if err := rootCmd.Execute(); err != nil {
if err != errSilent {
fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, fmt.Errorf("❌ %s", err))
}
return 1
}
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/markdown/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func Render(path string) error {

data, err := ioutil.ReadFile(path)
if err != nil {
return errors.New("changelog not found. Check your configuration or run gh changelog new")
return errors.New("changelog not found. Check your configuration or run gh changelog new")
}

content, err := r.Render(string(data))
Expand Down

0 comments on commit cb1d4c7

Please sign in to comment.