Skip to content

Commit 7c44e9c

Browse files
committed
fix: slightly better error message for schemas
1 parent 0bc1693 commit 7c44e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/schematic.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ defmodule Schematic do
310310

311311
%Schematic{
312312
kind: "map",
313-
message: "a map",
313+
message: "a %#{String.replace(to_string(mod), "Elixir.", "")}{}",
314314
assimilate: fn input ->
315315
with {:ok, output} <- assimilate(map(schematic), input) do
316316
{:ok, struct(mod, output)}

0 commit comments

Comments
 (0)