LionyxML / auto-dark-emacs

Auto-Dark-Emacs is an auto changer between 2 themes, dark/light, following MacOS, Linux or Windows Dark Mode settings
GNU General Public License v2.0
140 stars 34 forks source link

Better errors when determining detection method #62

Open sellout opened 1 month ago

sellout commented 1 month ago

Rather than just saying that we couldn’t determine the detection method, this indicates why and makes some suggestions. Probably even longer errors with concrete steps to remedy each case would be helpful.

This includes an alternative approach to the first bullet point in #61 – changing where we suggest that auto-dark-allow-osascript should be enabled (although this does not change the error that suggests it in the wrong place).

All of the logic here should be identical, it just splits it into multiple conditionals to avoid duplication and identify different failure modes.