mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-08-28 00:54:27 +00:00
fix(frontend): clean up failed ping error logging in dev tools
Replace raw console.log(e) dumps with console.warn containing just the human-readable message, suppressing the noisy HttpError stack trace.
This commit is contained in:
@@ -355,8 +355,8 @@ export default {
|
||||
// show result
|
||||
DialogUtils.alert(info.join("\n"));
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
const message = e.response?.data?.message ?? this.$t("messages.ping_failed");
|
||||
console.warn("Ping failed:", message);
|
||||
DialogUtils.alert(message);
|
||||
} finally {
|
||||
ToastUtils.dismiss(pingToastKey);
|
||||
|
||||
@@ -284,10 +284,9 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(e);
|
||||
|
||||
// add ping error to results
|
||||
const message = e.response?.data?.message ?? e;
|
||||
const message = e.response?.data?.message ?? e.message ?? String(e);
|
||||
console.warn("Ping failed:", message);
|
||||
this.addPingResult(`seq=${this.seq} error=${message}`);
|
||||
this.lastPingSummary = {
|
||||
error: typeof message === "string" ? message : JSON.stringify(message),
|
||||
|
||||
Reference in New Issue
Block a user