diff --git a/layers/+lang/python/funcs.el b/layers/+lang/python/funcs.el index 81b35a2a09e4..75b9c550cc79 100644 --- a/layers/+lang/python/funcs.el +++ b/layers/+lang/python/funcs.el @@ -90,8 +90,10 @@ (if (configuration-layer/layer-used-p 'lsp) (progn (require (pcase python-lsp-server + ('pyls 'lsp-pyls) ('mspyls 'lsp-python-ms) - ('pyright 'lsp-pyright))) + ('pyright 'lsp-pyright) + (x (user-error "Unknown value for `python-lsp-server': %s" x)))) (lsp)) (message "`lsp' layer is not installed, please add `lsp' layer to your dotfile.")))