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

Commit

Permalink
Update error to include context details
Browse files Browse the repository at this point in the history
Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
  • Loading branch information
ankur22 and inancgumus committed Jun 14, 2023
1 parent c55e2e9 commit b8b1b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (b *Browser) onDetachedFromTarget(ev *target.EventDetachedFromTarget) {

func (b *Browser) newPageInContext(id cdp.BrowserContextID) (*Page, error) {
if b.context == nil || b.context.id != id {
return nil, fmt.Errorf("missing browser context: %s", id)
return nil, fmt.Errorf("missing browser context %s, current context is %s", id, b.context.id)
}

ctx, cancel := context.WithTimeout(b.ctx, b.browserOpts.Timeout)
Expand Down

0 comments on commit b8b1b5f

Please sign in to comment.