How to exit a Julia program without completely exit REPL or shutting down Julia?

Just had a use case with debugging my code - I used error("some message") to interrupt the program execution and return to (VSCode) REPL. It does exactly what I need except it each time prints the stack which I DO NOT need.

Wouldn’t it be possible to have an additional (keyword?) argument for error / throw like printstack=true

Using the detach keyword argument of Cmd seems to solve the aforementioned issue.

macro reset()
  quote
     atexit() do
         Cmd(`$(Base.julia_cmd())`; detach=true) |> run
     end
     exit()
   end
end