Skip to content

Is there a way to prevent Request being made on Pre-Request script? #43

@roncsak

Description

@roncsak

Is your feature request related to a problem?

Let's say I have a Request but I only want that being run on a specific condition.
In general, I can just write throw new Error("cause of the error"); and thats it.

In my case I would like to use console.log() or console.info() before throwing an error but because of the throw new the console message is not displayed.

Describe the solution you'd like

Would it be possible to use return false; and still logging to console?

Currently the script return false; results the following:
image

When I would use return false I would expect that the Request is not being made at all.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions