Now throwing an exception if login fails.

Este commit está contenido en:
Gergely Polonkai 2012-12-20 19:13:08 +01:00
padre 591cd8aa41
commit fdde9b5bfa
Se han modificado 1 ficheros con 2 adiciones y 0 borrados

Ver fichero

@ -38,6 +38,8 @@ class Sender
{
if ($this->sender->login($this->container->getParameter('username'), $this->container->getParameter('password')) === true) {
$this->loggedIn = true;
} else {
throw new \RuntimeException('Unable to login to gateway!');
}
}