Chocolate is toxic to dogs. Depending on how much/type of chocolate, it could be a medical emergency. Contact your veterinarian or emergency vet as soon as possible.