@esfaenza/core 19.2.66 → 19.2.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -220,9 +220,9 @@ class ErrorPageComponent {
|
|
|
220
220
|
this.errorMessage = this.b64DecodeUnicode(this.route.snapshot.params["errorMessage"]);
|
|
221
221
|
let identity = this.bts.getJaceIdentity();
|
|
222
222
|
this.previousUrl = this.route.snapshot.params["fromUrl"];
|
|
223
|
-
let calls = (this.http.LastThreeCompletedCalls[0]
|
|
224
|
-
this.errorLastRequests = (this.http.LastThreeCompletedCalls[0]
|
|
225
|
-
this.errorLastResponses = (this.http.LastThreeCompletedCalls[0]
|
|
223
|
+
let calls = (this.http.LastThreeCompletedCalls[0]?.api || "<empty>") + ", " + (this.http.LastThreeCompletedCalls[1]?.api || "<empty>") + ", " + (this.http.LastThreeCompletedCalls[2]?.api || "<empty>");
|
|
224
|
+
this.errorLastRequests = (this.http.LastThreeCompletedCalls[0]?.requestJson || "<empty>") + ", " + (this.http.LastThreeCompletedCalls[1]?.requestJson || "<empty>") + ", " + (this.http.LastThreeCompletedCalls[2]?.requestJson || "<empty>");
|
|
225
|
+
this.errorLastResponses = (this.http.LastThreeCompletedCalls[0]?.responseJson || "<empty>") + ", " + (this.http.LastThreeCompletedCalls[1]?.responseJson || "<empty>") + ", " + (this.http.LastThreeCompletedCalls[2]?.responseJson || "<empty>");
|
|
226
226
|
this.errorFrom = "From page: " + (this.previousUrl || "<missing>");
|
|
227
227
|
this.errorLastCalls = "Last three calls: " + calls;
|
|
228
228
|
this.identityInfos = "Logged user: " + (identity?.Idtenant || '??') + "-" + (identity?.DsUser || '???????');
|
|
@@ -237,6 +237,8 @@ class ErrorPageComponent {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
b64DecodeUnicode(str) {
|
|
240
|
+
if (!str)
|
|
241
|
+
return "";
|
|
240
242
|
// Bytestream -> Encoding % -> Stringa originale
|
|
241
243
|
return decodeURIComponent(atob(str).split("").map(c => "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2)).join(""));
|
|
242
244
|
}
|