Better error handling, see #2009

This commit is contained in:
Pieter Vander Vennet 2024-07-09 13:39:36 +02:00
parent 0db81f7b68
commit c91d691a36
2 changed files with 95 additions and 62 deletions

View file

@ -154,7 +154,7 @@ export class ChangesetHandler {
if (this._reportError) {
this._reportError(e)
}
console.warn("Could not open/upload changeset due to ", e, "trying t")
console.warn("Could not open/upload changeset due to ", e, "trying again with a another fresh changeset ")
openChangeset.setData(undefined)
throw e
@ -187,7 +187,7 @@ export class ChangesetHandler {
await this.UpdateTags(csId, rewrittenTags)
} catch (e) {
if (this._reportError) {
this._reportError(e)
this._reportError("Could not reuse changeset, might be closed: " + e.stacktrace ?? "" + e)
}
console.warn("Could not upload, changeset is probably closed: ", e)
openChangeset.setData(undefined)