Change error message for geofence error in mobile app #199

This commit is contained in:
Kendrick Chan 2019-04-02 12:06:55 +08:00
parent b09ca589f2
commit b988abd852

View file

@ -802,8 +802,9 @@ class APIController extends Controller
$is_covered = $geo->isCovered($long, $lat);
if (!$is_covered)
{
// TODO: put geofence error message in config file somewhere
$res->setError(true)
->setErrorMessage('Location is not covered by our service.');
->setErrorMessage('Oops! Our service is limited to Metro Manila only. We will update you as soon as we are able to cover your area');
return $res->getReturnResponse();
}