Various changes after handling many error reports
This commit is contained in:
parent
51fa48a01f
commit
9adc91fbae
4 changed files with 31 additions and 24 deletions
|
@ -440,15 +440,17 @@ export class Changes {
|
|||
}
|
||||
})
|
||||
|
||||
console.debug(
|
||||
"Calculated the pending changes: ",
|
||||
result.newObjects.length,
|
||||
"new; ",
|
||||
result.modifiedObjects.length,
|
||||
"modified;",
|
||||
result.deletedObjects,
|
||||
"deleted"
|
||||
)
|
||||
if(!(result.newObjects.length === 0 && result.modifiedObjects.length === 0 && result.deletedObjects.length === 0)) {
|
||||
console.debug(
|
||||
"Calculated the pending changes: ",
|
||||
result.newObjects.length,
|
||||
"new; ",
|
||||
result.modifiedObjects.length,
|
||||
"modified;",
|
||||
result.deletedObjects.length,
|
||||
"deleted"
|
||||
)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
|
@ -154,6 +154,10 @@ export class ChangesetHandler {
|
|||
if (this._reportError) {
|
||||
this._reportError(e)
|
||||
}
|
||||
if((<XMLHttpRequest> e).status === 400){
|
||||
// This request is invalid. We simply drop the changes and hope that someone will analyze what went wrong with it in the upload; we pretend everything went fine
|
||||
return
|
||||
}
|
||||
console.warn(
|
||||
"Could not open/upload changeset due to ",
|
||||
e,
|
||||
|
@ -195,7 +199,7 @@ export class ChangesetHandler {
|
|||
"Could not reuse changeset " +
|
||||
csId +
|
||||
", might be closed: " +
|
||||
(e.stacktrace ?? "" + e)
|
||||
(e.stacktrace ?? e.status ?? "" + e)
|
||||
)
|
||||
}
|
||||
console.warn("Could not upload, changeset is probably closed: ", e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue