core: Fix error message when macro is missing.