diff --git a/pygls/feature_manager.py b/pygls/feature_manager.py index d00283a6..e4f91b84 100644 --- a/pygls/feature_manager.py +++ b/pygls/feature_manager.py @@ -196,7 +196,8 @@ def decorator(f): raise TypeError( ( f'Options of method "{feature_name}"' - f" should be instance of type {options_type}" + f" is instance of type {type(options)}" + f" which is not a subtype of {options_type}" ) ) self._feature_options[feature_name] = options