From a224e2742a9c53bc19511765a88872d1729116c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0nan=C3=A7=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 21 Dec 2023 12:48:11 +0300 Subject: [PATCH] Change chrome not installed errs --- chromium/browser_type.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/chromium/browser_type.go b/chromium/browser_type.go index c51441c6c..6a2e38075 100644 --- a/chromium/browser_type.go +++ b/chromium/browser_type.go @@ -249,10 +249,14 @@ func (b *BrowserType) allocate( var ( // ErrChromeNotInstalled is returned when the Chrome executable is not found. - ErrChromeNotInstalled = errors.New("neither chrome nor chromium is installed on this system") + ErrChromeNotInstalled = errors.New( + "k6 couldn't detect google chrome or a chromium-supported browser on this system", + ) // ErrChromeNotFoundAtPath is returned when the Chrome executable is not found at the given path. - ErrChromeNotFoundAtPath = errors.New("neither chrome nor chromium found on the path") + ErrChromeNotFoundAtPath = errors.New( + "k6 couldn't detect google chrome or a chromium-supported browser on the given path", + ) ) // executablePath returns the path where the extension expects to find the browser executable.