mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-02 06:01:57 +00:00
Add error handling for 400 responses
This commit is contained in:
parent
bf60fe7f6c
commit
1fe8aebf5b
1 changed files with 5 additions and 1 deletions
|
@ -70,7 +70,11 @@ define [
|
|||
onErrorHandler(httpResponse)
|
||||
return
|
||||
|
||||
if status == 403 # Forbidden
|
||||
if status == 400 # Bad Request
|
||||
response.message =
|
||||
text: "Invalid Request. Please correct the data and try again."
|
||||
type: 'error'
|
||||
else if status == 403 # Forbidden
|
||||
response.message =
|
||||
text: "Session error. Please check you have cookies enabled. If the problem persists, try clearing your cache and cookies."
|
||||
type: "error"
|
||||
|
|
Loading…
Reference in a new issue