Skip to content

Non-deterministic error is not printed #28

Description

@gaborcsardi

Reprex:

bench::mark(if (runif(1) < 0.01) stop("stop"))

nothing is printed here...

Somewhat surprisingly, the error is actually there, you can catch it:

tryCatch(bench::mark(if (runif(1) < 0.01) stop("stop")), error = identity)
#> <simpleError in force(expr): stop>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions