File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ export const HttpErrorHeader = (p: {
4545 DESKTOP_HEADER_LIMIT_CONFIGURABLE
4646 ) ;
4747
48+ // We don't bother explaining errors we triggered ourselves (breakpoint or
49+ // close/reset rule aborts).
50+ if ( p . type === 'rule-abort' ) return ;
51+
4852 return < HeaderCard >
4953 < HeaderText >
5054 < WarningIcon /> {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export type ErrorType =
1212 | 'dns-error'
1313 | 'connection-refused'
1414 | 'connection-reset'
15+ | 'rule-abort'
1516 | 'client-abort'
1617 | 'server-timeout'
1718 | 'client-timeout'
@@ -153,6 +154,20 @@ export function tagsToErrorType(tags: string[]): ErrorType | undefined {
153154 tags . includes ( "client-error:EPIPE" )
154155 ) return 'client-abort' ;
155156
157+ if (
158+ // Request breakpoint close/reset:
159+ tags . includes ( "passthrough-error:E_RULE_BREQ_CLOSE" ) ||
160+ tags . includes ( "passthrough-error:E_RULE_BREQ_RESET" ) ||
161+ // Response breakpoint close/reset:
162+ tags . includes ( "passthrough-error:E_RULE_BRES_CLOSE" ) ||
163+ tags . includes ( "passthrough-error:E_RULE_BRES_RESET" ) ||
164+ // Close/reset rule:
165+ tags . includes ( "passthrough-error:E_RULE_CLOSE" ) ||
166+ tags . includes ( "passthrough-error:E_RULE_RESET" )
167+ ) {
168+ return 'rule-abort' ;
169+ }
170+
156171 if (
157172 tags . filter ( t => t . startsWith ( "passthrough-error:" ) ) . length > 0 ||
158173 tags . filter ( t => t . startsWith ( "client-error:" ) ) . length > 0
You can’t perform that action at this time.
0 commit comments