{"record":{"id":"c6405358db0af446","repo":"GopeedLab/gopeed","slug":"download-q-failed-w","errorCode":null,"errorMessage":"download %q failed: %w","messagePattern":"download %q failed: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/extmock/main.go","lineNumber":322,"sourceCode":"\t\tsummary.Files = append(summary.Files, &downloadedFileResult{\n\t\t\tIndex:  idx,\n\t\t\tName:   file.Name,\n\t\t\tPath:   filepath.Join(targetDir, file.Name),\n\t\t\tTaskID: taskID,\n\t\t\tReq:    file.Req,\n\t\t})\n\t}\n\n\tvar stopVerbose func()\n\tif verbose {\n\t\tstopVerbose = startVerboseTaskListener(d, summary.Files)\n\t\tdefer stopVerbose()\n\t}\n\n\tfor _, file := range summary.Files {\n\t\ttask, err := waiter.Wait(file.TaskID, 5*time.Minute)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"download %q failed: %w\", file.Name, err)\n\t\t}\n\t\tfile.Status = task.Status\n\t\tif info, statErr := os.Stat(file.Path); statErr == nil {\n\t\t\tfile.Size = info.Size()\n\t\t}\n\t}\n\n\treturn printJSON(summary, pretty)\n}\n\nfunc runEval(args []string) error {\n\tfs := flag.NewFlagSet(\"eval\", flag.ContinueOnError)\n\tfs.SetOutput(os.Stderr)\n\tvar (\n\t\tscript string\n\t\tpretty bool\n\t)\n\tcfg := webViewConfig{}","sourceCodeStart":304,"sourceCodeEnd":340,"githubUrl":"https://github.com/GopeedLab/gopeed/blob/7b7327ffb30816273a74b142cccc0bc10c5a4c67/cmd/extmock/main.go#L304-L340","documentation":"Error \"download %q failed: %w\" thrown in GopeedLab/gopeed.","triggerScenarios":"Thrown at cmd/extmock/main.go:322 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b7327ffb30816273a74b142cccc0bc10c5a4c67","analyzedAt":"2026-08-16T02:51:03.250Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}