mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
Add handler for exceptions on thread update related to cookies block (see also #258)
This commit is contained in:
parent
fd94b0108c
commit
0c416c7d7c
@ -240,6 +240,9 @@ abstract class AbstractProcessor
|
|||||||
return $this->buildSyncResponses($this->responses);
|
return $this->buildSyncResponses($this->responses);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
// Looks like a try to use chat with blocked cookies or something, return 403
|
||||||
|
return new Response('Update forbidden', Response::HTTP_FORBIDDEN);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// Something went wrong. Trigger error event
|
// Something went wrong. Trigger error event
|
||||||
$vars = array('exception' => $e);
|
$vars = array('exception' => $e);
|
||||||
|
Loading…
Reference in New Issue
Block a user