Skip to content

Commit

Permalink
add loging to docloading
Browse files Browse the repository at this point in the history
  • Loading branch information
acenturyandabit committed Feb 13, 2021
1 parent d7525ed commit 7eac8f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,7 @@ polymorph_core.on("titleButtonsReady", () => {
polymorph_core.integrateData(d, i.type);
} catch (e) {
alert("Something went wrong with the save source: " + e);
console.log(e);
loadAttemptsRemaining--;
if (loadAttemptsRemaining == 0) {
noloadpanicask();
Expand Down Expand Up @@ -2030,6 +2031,7 @@ polymorph_core.on("titleButtonsReady", () => {
polymorph_core.integrateData(d, i.type);
} catch (e) {
alert("Something went wrong with the save source: " + e);
console.log(e);
throw (e);
//todo: restore document
}
Expand All @@ -2042,6 +2044,7 @@ polymorph_core.on("titleButtonsReady", () => {
polymorph_core.integrateData(d, i.type);
} catch (e) {
alert("Something went wrong with the save source: " + e);
console.log(e);
throw (e);
//todo: restore document
}
Expand Down
1 change: 1 addition & 0 deletions core_modules/core/core.docLoading.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@
polymorph_core.integrateData(d, i.type);
} catch (e) {
alert("Something went wrong with the save source: " + e);
console.log(e);
loadAttemptsRemaining--;
if (loadAttemptsRemaining == 0) {
noloadpanicask();
Expand Down
2 changes: 2 additions & 0 deletions core_modules/ui/core.loadSaveUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
polymorph_core.integrateData(d, i.type);
} catch (e) {
alert("Something went wrong with the save source: " + e);
console.log(e);
throw (e);
//todo: restore document
}
Expand All @@ -146,6 +147,7 @@
polymorph_core.integrateData(d, i.type);
} catch (e) {
alert("Something went wrong with the save source: " + e);
console.log(e);
throw (e);
//todo: restore document
}
Expand Down

0 comments on commit 7eac8f4

Please sign in to comment.