Skip to content

Commit 85cf61d

Browse files
authored
Merge pull request #97 from AlgebraicJulia/@schema-head-error-message
Small Error Improvement
2 parents d5a1ee2 + 201fde7 commit 85cf61d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/intertypes/julia.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ function parse_intertype_decl(e; mod::InterTypeModule)
143143
(name, tschema) = @match head begin
144144
Expr(:(<:), name, parent) => (name, copy(mod.declarations[parent].schema))
145145
name::Symbol => (name, TypedSchema{Symbol, InterType}())
146+
_ => error("expected schema head of the form `\$SchemaName` or `\$SchemaName <: Parent`.")
146147
end
147148
Base.remove_linenums!(body)
148149
Pair(name, SchemaDecl(parse_typedschema!(body, tschema; mod)))

0 commit comments

Comments
 (0)