1
0
Fork 0

Now throwing an exception if login fails.

Esse commit está contido em:
Gergely Polonkai 2012-12-20 19:13:08 +01:00
commit fdde9b5bfa
1 arquivos alterados com 2 adições e 0 exclusões

Ver arquivo

@ -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!');
}
}