Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fir and format printf calls #52

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

em-er-es
Copy link

@em-er-es em-er-es commented Mar 1, 2025

  • Fix printf lowercase typo
  • Fix printf newline typo
  • Fix errorf lowercase typos in config and journal
  • Update changelog

Copy link
Owner

@jrswab jrswab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution! It's always awesome to see people helping out.

Just a few things to address before merging.

fmt.Printf("Make sure the path is correct and the directories exist./n")
os.Exit(0)
fmt.Printf("Could not find Logseq files at '%s'.\nMake sure the path is correct and the directories exist.\n", cfg.DirPath)
os.Exit(1)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch here with the switch to os.Exit(1).

return nil, fmt.Errorf("error reading config file: %v\n", err)
return nil, fmt.Errorf("Error reading config file: %v\n", err)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's Go convention to keep all error massages from starting with a capital letter. When you have the time please switch these back.

Comment on lines +14 to +16
### Fixed
- Printed calls and formatting

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this into the [unreleased] section of the change log. I'll bump the version once I cut a new release.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to revert line 10 back to ## [1.1.0] - 2025-02-16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants