Skip to content

Commit

Permalink
Refactor to allow for more error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Apr 29, 2024
1 parent d7f338b commit 53c0ce7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/js_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ func (h *BaseJSHandle) Dispose() {
// context. The reason the context would be closed is due to the
// iteration ending and therefore the associated browser and its assets
// will be automatically deleted.
if !errors.Is(err, context.Canceled) {
k6ext.Panic(h.ctx, "dispose: %w", err)
if errors.Is(err, context.Canceled) {
h.logger.Debugf("BaseJSHandle:Dispose", "%v", err)
}

k6ext.Panic(h.ctx, "dispose: %w", err)
}
}

Expand Down

0 comments on commit 53c0ce7

Please sign in to comment.