-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Feature Request: print git error explicitly #98
Comments
That's strange, as the actual error is re-raised: mkdocs-git-revision-date-localized-plugin/mkdocs_git_revision_date_localized_plugin/util.py Line 139 in 9cfce40
Git errors come from the |
@ldeluigi small reminder. Can you provide some more details? |
Yes. I'd like to see the git error even if I enabled fallback_to_build_date. The raise instruction is done only in the else part of the catch clause. I'd like to see a info message that explains why git fired the error... |
The problem is that I enabled that option only for when a git repo doesn't exist at all. When it does, if something goes wrong, I want to fallback to build date + see what went wrong.... Could you add some code that checks if a .git folder is present and in that case you primt debug info on the git exception? |
Ahhh, I see! Thanks for clarifying, and yes, logging the error when there's a fallback makes sense. Probably a warning level log is more fitting than a info level log. |
mkdocs-git-revision-date-localized-plugin/mkdocs_git_revision_date_localized_plugin/util.py
Line 127 in 9cfce40
When an error occurs with git commands, I can't debug the reason.
For example, I can't distinguish between:
PS. I'd like the same thing for your others git-based mkdocs plugins
The text was updated successfully, but these errors were encountered: