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

Fix Error Handling and Resource Leak in path.go and root.go #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 8, 2023

  1. fix(path.go): change logrus.Fatal to logrus.Fatalf to format error me…

    …ssage
    
    fix(root.go): add defer f.Close() to ensure file is closed after writing
    The logrus.Fatal function is changed to logrus.Fatalf in order to format the error message with the error string. This provides more detailed information about the error when logging. In root.go, a defer statement is added to ensure that the file is closed after writing. This prevents resource leaks and ensures proper cleanup.
    gopkg-dev committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    3c39940 View commit details
    Browse the repository at this point in the history