Use a real error class when metadata is not found