Better error message for missing definitions