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