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: {
45
45
DESKTOP_HEADER_LIMIT_CONFIGURABLE
46
46
) ;
47
47
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
+
48
52
return < HeaderCard >
49
53
< HeaderText >
50
54
< WarningIcon /> {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export type ErrorType =
12
12
| 'dns-error'
13
13
| 'connection-refused'
14
14
| 'connection-reset'
15
+ | 'rule-abort'
15
16
| 'client-abort'
16
17
| 'server-timeout'
17
18
| 'client-timeout'
@@ -153,6 +154,20 @@ export function tagsToErrorType(tags: string[]): ErrorType | undefined {
153
154
tags . includes ( "client-error:EPIPE" )
154
155
) return 'client-abort' ;
155
156
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
+
156
171
if (
157
172
tags . filter ( t => t . startsWith ( "passthrough-error:" ) ) . length > 0 ||
158
173
tags . filter ( t => t . startsWith ( "client-error:" ) ) . length > 0
You can’t perform that action at this time.
0 commit comments