Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/lib/nodes/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export class AllNodesOfflineError extends Error {
super(`${label}: All nodes are offline`)

this.nodeLabel = label
// Override stack to show only the message without stack trace in console
this.stack = this.message
}
}

Expand All @@ -57,6 +59,8 @@ export class AllNodesDisabledError extends Error {
super(`${label}: All nodes are disabled`)

this.nodeLabel = label
// Override stack to show only the message without stack trace in console
this.stack = this.message
}
}

Expand All @@ -66,6 +70,6 @@ export function isAllNodesDisabledError(error: Error): error is AllNodesDisabled

export class NoInternetConnectionError extends Error {
constructor() {
super();
super()
}
}