mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
b20c4afd9b
fix: fix chart links rendering
16 lines
295 B
Elixir
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
|