uploads: handle server errors nicer
This commit is contained in:
parent
fe51098720
commit
0a2c47d444
2 changed files with 2 additions and 2 deletions
|
|
@ -729,7 +729,7 @@ var CommentsController = function() {
|
|||
|
||||
if (xhr !== undefined){
|
||||
var httpStatus = xhr.status + " " + xhr.statusText;
|
||||
if (xhr.status >= 500) {
|
||||
if (xhr !== undefined && xhr.status >= 500) {
|
||||
error = httpStatus;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@
|
|||
|
||||
if (xhr !== undefined){
|
||||
var httpStatus = xhr.status + " " + xhr.statusText;
|
||||
if (xhr.status >= 500) {
|
||||
if (xhr !== undefined && xhr.status >= 500) {
|
||||
error = httpStatus;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue