dreamyguy / gitlogg

💾 🧮 🤯 Parse the 'git log' of multiple repos to 'JSON'
MIT License
130 stars 27 forks source link

Better error handling when path to repository folders doesn't exist #2

Closed dreamyguy closed 8 years ago

dreamyguy commented 8 years ago

Even though the user gets a complaint about the missing path, the script doesn't fail gracefully.

The JSON generation script is triggered and yet another error comes up, this time from node, which is missing the data it expects.

To prevent this, make sure you: A. Place the gitlogg folder where it is expected (Simple Mode) or B. Edit the absolute path to the folder that contains the repositories you want to parse to JSON (Advanced Mode)

It's explained in details on the README.md file.

dreamyguy commented 8 years ago

Even better error-handling with https://github.com/dreamyguy/gitlogg/commit/016f22b91860f8c688ae722e36ef7b921c0eca62, which also checks if path to repository exists but is empty. 🎈