-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: master
Are you sure you want to change the base?
Conversation
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
Squash printf calls into one Fix error code for journal directory check
There was a problem hiding this 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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
### Fixed | ||
- Printed calls and formatting | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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