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
With this code:
@spec mk58(binary()) :: Result.possibly(FiftyEight.t()) def mk58(x) do Result.new(fn -> mk58!(x) end) end @spec mk58!(binary()) :: Result.possibly(FiftyEight.t()) def mk58!(<<x::binary>>) do (Result.new(fn -> %FiftyEight{ encoded: x, raw: decode58(x) } end) |> tap(fn y -> assert Result.is_ok?(y), "Base58-decode failed to decode #{inspect(x)}. Invalid characters?" end)).ok end
I get this error:
iex(9)> Uptight.Base.mk58({1}) %Uptight.Result.Err{ err: %Uptight.Trace{ exception: %FunctionClauseError{ module: Uptight.Base, function: :mk58!, arity: 1, kind: nil, args: nil, clauses: nil }, stacktrace: [ {Uptight.Base, :mk58!, [{1}], [file: 'lib/uptight/base.ex', line: 103]}, {Uptight.Result, :new, 1, [file: 'lib/uptight/result.ex', line: 62]}, {:erl_eval, :do_apply, 6, [file: 'erl_eval.erl', line: 685]}, {:elixir, :eval_forms, 4, [file: 'src/elixir.erl', line: 294]}, {Module.ParallelChecker, :verify, 1, [file: 'lib/module/parallel_checker.ex', line: 110]}, {IEx.Evaluator, :eval_and_inspect, 3, [file: 'lib/iex/evaluator.ex', line: 329]}, {IEx.Evaluator, :eval_and_inspect_parsed, 3, [file: 'lib/iex/evaluator.ex', line: 303]}, {IEx.Evaluator, :parse_eval_inspect, 3, [file: 'lib/iex/evaluator.ex', line: 292]} ] } }
Which is unacceptable.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why?
With this code:
I get this error:
Which is unacceptable.
The text was updated successfully, but these errors were encountered: