Added error handler
This commit is contained in:
@@ -55,7 +55,7 @@ class Access extends \Core\Model
|
||||
}
|
||||
return false;
|
||||
} catch (PDOException $e) {
|
||||
echo $e->getMessage();
|
||||
throw new \Exception($e->getMessage(), 444);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,9 +97,8 @@ class Access extends \Core\Model
|
||||
}
|
||||
}
|
||||
\Core\Session::flash('info', 'Invalid username/password');
|
||||
return false;
|
||||
} catch (PDOException $e) {
|
||||
echo $e->getMessage();
|
||||
throw new \Exception($e->getMessage(), 444);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user