We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errors = [cy, dy] |> Enum.filter(&Result.is_err?/1) case errors do [] -> conn |> put_resp_header("X-Nonsense-Auth-Chal", cy |> extract) |> send_resp(200, dy |> extract |> Jason.encode!()) _ -> conn |> send_resp(403, errors |> Jason.encode!() |> to(%Err{})) end
This sucks, because the consumers may expect a well-formed Err of type
@type err(e_t) :: %{ required(:__struct__) => Elixir.Uptight.Result.Err, required(:err) => %{ required(:exception) => e_t, required(:stacktrace) => list(any()), required(:__struct__) => Elixir.Uptight.Trace } }
But instead they gets something of type %{ ... required(:err) => list(err(any())}.
%{ ... required(:err) => list(err(any())}
Errs
to(%Errs{})
Err
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why?
This sucks, because the consumers may expect a well-formed Err of type
But instead they gets something of type
%{ ... required(:err) => list(err(any())}
.How?
Errs
, which wraps such listto(%Errs{})
.Errs
as well asErr
from typescript.The text was updated successfully, but these errors were encountered: