print an error if no entity are found or no relation are found