Refine error message for unknown goals