Add error info to get_cache_header_info and display it to end user#45
Add error info to get_cache_header_info and display it to end user#45samirnoman wants to merge 2 commits intodanny0838:mainfrom
Conversation
|
1. Please provide the affected file and the recent shell command history when the "random" error happens for further investigation. 2. Please do not include linefeed change in the commits. |
Unfortunaltely, I don't have an affected file right now. When it happened to me I re-created the file (I should've saved the malformatted file). Sorry about the linefeeds, I did not pay attention to it because I'm using windows. |
|
We don't want all the intermediate full-file diffs. Please rebase. |
|
the file is already rebased, but it has two commits.. |
return string with error info from get_cache_header_info to help diagnose why the file is invalid also print the error to stderr as warning
b1ca312 to
2a12672
Compare
|
I noticed that the line ending for the intermidiate commit was CRLF. I have corrected that and re-pushed the branch |
when using a git repo, I sometimes encounter the error:
And by inspecting the file it's not clear why!
These errors seem like random (I haven't been able to find what causes them)!
So, I made a modification to return a meaningful error from the function get_cache_header_info and display it. This should help disagnose these errors in the future in order to be able to solve them quickly