fix(chromium): hint at --chromium-start-timeout when Chromium fails to start

This commit is contained in:
Julien Neuhart
2026-08-13 12:47:45 +02:00
parent 38f6e466d4
commit 2f6818d3df

View File

@@ -222,7 +222,7 @@ func (b *chromiumBrowser) Start(logger *slog.Logger) error {
if stopErr != nil { if stopErr != nil {
logger.ErrorContext(context.Background(), fmt.Sprintf("stop pinning proxy after failed start: %s", stopErr)) logger.ErrorContext(context.Background(), fmt.Sprintf("stop pinning proxy after failed start: %s", stopErr))
} }
return fmt.Errorf("run exec allocator: %w", err) return fmt.Errorf("run exec allocator: %w; if Chromium is slow to start, raise --chromium-start-timeout (currently %s)", err, b.arguments.wsUrlReadTimeout)
} }
b.ctxMu.Lock() b.ctxMu.Lock()