Various changes after handling many error reports

This commit is contained in:
Pieter Vander Vennet 2024-08-09 20:38:13 +02:00
parent 51fa48a01f
commit 9adc91fbae
4 changed files with 31 additions and 24 deletions

View file

@ -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
}

View file

@ -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)