ash/test/support/flow/steps/error.ex
Zach Daniel b20c4afd9b improvement: haltable flows, branch step type
fix: fix chart links rendering
2022-10-06 17:04:44 -04:00

16 lines
295 B
Elixir

defmodule Ash.Test.Flow.Steps.Error do
@moduledoc false
use Ash.Flow.Step
def run(%{error: :raise}, _opts, _context) do
raise "uh oh!"
end
def run(%{error: :return}, _opts, _context) do
{:error, "uh oh!"}
end
def run(_input, _opts, _context) do
{:ok, nil}
end
end