diff --git a/process/process_windows.go b/process/process_windows.go index f8610a8..7a6a9de 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -522,7 +522,7 @@ func (p *Process) NumThreads() (int32, error) { func (p *Process) NumThreadsWithContext(ctx context.Context) (int32, error) { _, ret, _, err := getFromSnapProcess(p.Pid) if err != nil { - return 0, fmt.Errorf("could not get ThreadCount: %s", err) + return 0, err } return ret, nil }