diff --git a/lib/nimble_options.ex b/lib/nimble_options.ex index 1653f0f..a41aee4 100644 --- a/lib/nimble_options.ex +++ b/lib/nimble_options.ex @@ -517,7 +517,7 @@ defmodule NimbleOptions do {:ok, options} else {:error, %ValidationError{} = error} -> - {:error, %ValidationError{error | keys_path: path ++ error.keys_path}} + {:error, %{error | keys_path: path ++ error.keys_path}} end end