Now throwing an exception if login fails.
This commit is contained in:
parent
591cd8aa41
commit
fdde9b5bfa
@ -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!');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user