Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kuceb committed Aug 2, 2021
1 parent 0eba85f commit c877359
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/driver/src/cy/commands/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ export default function (Commands, Cypress, cy) {
cy.state('onCommandFailed', (err, queue, next) => {
const index = _.findIndex(queue.commands, (v: any) => _commandToResume && v.attributes.chainerId === _commandToResume.chainerId)

// attach codeframe and cleanse the stack trace since we may not hit the cy.fail callback
// attach codeframe and cleanse the stack trace since we will not hit the cy.fail callback
// if this is the first time validate fails
if (typeof err === 'string') {
err = new Error(err)
}
Expand Down

0 comments on commit c877359

Please sign in to comment.