Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit f0ee654

Browse files
inancgumusIvan Mirić
andauthored
Apply suggestions: fix k6Throw in BrowserContext
Co-authored-by: Ivan Mirić <ivan.miric@grafana.com>
1 parent c1f3485 commit f0ee654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/browser_context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (b *BrowserContext) SetExtraHTTPHeaders(headers map[string]string) {
247247
func (b *BrowserContext) SetGeolocation(geolocation goja.Value) {
248248
g := NewGeolocation()
249249
if err := g.Parse(b.ctx, geolocation); err != nil {
250-
k6Throw(b.ctx, "cannot set geo location: %w", err)
250+
k6Throw(b.ctx, "cannot parse geo location: %w", err)
251251
}
252252

253253
b.opts.Geolocation = g
@@ -262,7 +262,7 @@ func (b *BrowserContext) SetGeolocation(geolocation goja.Value) {
262262
func (b *BrowserContext) SetHTTPCredentials(httpCredentials goja.Value) {
263263
c := NewCredentials()
264264
if err := c.Parse(b.ctx, httpCredentials); err != nil {
265-
k6Throw(b.ctx, "cannot set http credentials: %w", err)
265+
k6Throw(b.ctx, "cannot set HTTP credentials: %w", err)
266266
}
267267

268268
b.opts.HttpCredentials = c

0 commit comments

Comments
 (0)