| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 40e2646 commit a0c5447
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -283,10 +283,12 @@ export function wrapApiConfigurationError(e: unknown) { | |||
| 283 | 283 | const httpError = asHTTPError(e); | |
| 284 | 284 | if (httpError !== undefined) { | |
| 285 | 285 | if ( | |
| 286 | - httpError.message.includes("API rate limit exceeded") || | ||
| 287 | - httpError.message.includes("commit not found") || | ||
| 288 | - httpError.message.includes("Resource not accessible by integration") || | ||
| 289 | - /ref .* not found in this repository/.test(httpError.message) | ||
| 286 | + [ | ||
| 287 | + /API rate limit exceeded/, | ||
| 288 | + /commit not found/, | ||
| 289 | + /Resource not accessible by integration/, | ||
| 290 | + /ref .* not found in this repository/, | ||
| 291 | + ].some((pattern) => pattern.test(httpError.message)) | ||
| 290 | 292 | ) { | |
| 291 | 293 | return new ConfigurationError(httpError.message); | |
| 292 | 294 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments