zeal icon indicating copy to clipboard operation
zeal copied to clipboard

Complete TODO: Add descriptive error messages to docset initialization failure

Open amini-allight opened this issue 4 months ago • 0 comments

While authoring a new Zeal docset recently I configured the docset wrong and had to debug the issue, but the only error message Zeal would give me was:

Could not load docset from 'PATH'. Reinstall the docset.

I went through the code trying to find the root cause of this error and discovered a TODO in src/libs/registry/docset.cpp suggesting that the errors leading to that message should be reported in more detail. I decided to try fix this myself, which is what this pull request does, adding new error messages for missing directories or files and for a malformed Info.plist.

amini-allight avatar Oct 07 '24 06:10 amini-allight