diff --git a/core/core-modules.el b/core/core-modules.el index 3d9460052..8adf0c818 100644 --- a/core/core-modules.el +++ b/core/core-modules.el @@ -532,8 +532,8 @@ CATEGORY and MODULE can be omitted When this macro is used from inside a module (doom--current-flags (memq category doom--current-flags)) ((let ((module (doom-module-from-path))) (unless module - (error "featurep! couldn't figure out what module it was called from (in %s)" - (file!))) + (error "(featurep! %s %s %s) couldn't figure out what module it was called from (in %s)" + category module flag (file!))) (memq category (doom-module-get (car module) (cdr module) :flags))))) t))