GopeedLab/gopeed · error

download %q failed: %w

Error message

download %q failed: %w

What it means

Error "download %q failed: %w" thrown in GopeedLab/gopeed.

Source

Thrown at cmd/extmock/main.go:322

		summary.Files = append(summary.Files, &downloadedFileResult{
			Index:  idx,
			Name:   file.Name,
			Path:   filepath.Join(targetDir, file.Name),
			TaskID: taskID,
			Req:    file.Req,
		})
	}

	var stopVerbose func()
	if verbose {
		stopVerbose = startVerboseTaskListener(d, summary.Files)
		defer stopVerbose()
	}

	for _, file := range summary.Files {
		task, err := waiter.Wait(file.TaskID, 5*time.Minute)
		if err != nil {
			return fmt.Errorf("download %q failed: %w", file.Name, err)
		}
		file.Status = task.Status
		if info, statErr := os.Stat(file.Path); statErr == nil {
			file.Size = info.Size()
		}
	}

	return printJSON(summary, pretty)
}

func runEval(args []string) error {
	fs := flag.NewFlagSet("eval", flag.ContinueOnError)
	fs.SetOutput(os.Stderr)
	var (
		script string
		pretty bool
	)
	cfg := webViewConfig{}

View on GitHub (pinned to 7b7327ffb3)

When it happens

Trigger: Thrown at cmd/extmock/main.go:322 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of GopeedLab/gopeed@7b7327ffb3 (2026-08-16). Data as JSON: /api/errors/c6405358db0af446. Report an issue: GitHub.