Now throwing an exception if login fails.

This commit is contained in:
Gergely Polonkai 2012-12-20 19:13:08 +01:00
부모 591cd8aa41
커밋 fdde9b5bfa
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

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