Skip to content

Commit

Permalink
Remove nil err from error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Jan 14, 2025
1 parent c56a67d commit f2d1ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/modules/k6/browser/common/execution_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (e *ExecutionContext) adoptBackendNodeID(backendNodeID cdp.BackendNodeID) (
if remoteObj == nil {
return nil, fmt.Errorf(`the page may have navigated away or the element is
now missing. It might happen when k6 and/or Chrome are overloaded. You
might need to increase the compute resources: %w`, err)
might need to increase the compute resources`)
}

return NewJSHandle(e.ctx, e.session, e, e.frame, remoteObj, e.logger).AsElement(), nil
Expand Down

0 comments on commit f2d1ad8

Please sign in to comment.