File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
extensions/ql-vscode/src/variant-analysis Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ import {
7676} from "./repo-states-store" ;
7777import { GITHUB_AUTH_PROVIDER_ID } from "../common/vscode/authentication" ;
7878import { FetchError } from "node-fetch" ;
79+ import { extLogger } from "../common" ;
7980
8081const maxRetryCount = 3 ;
8182
@@ -632,8 +633,14 @@ export class VariantAnalysisManager
632633 e instanceof FetchError &&
633634 ( e . code === "ETIMEDOUT" || e . code === "ECONNRESET" )
634635 ) {
636+ void extLogger . log (
637+ `Timeout while trying to download variant analysis with id: ${ variantAnalysis . id } . Retrying...` ,
638+ ) ;
635639 continue ;
636640 }
641+ void extLogger . log (
642+ `Failed to download variable analysis after ${ retry } attempts.` ,
643+ ) ;
637644 throw e ;
638645 }
639646 }
You can’t perform that action at this time.
0 commit comments