Skip to content

Commit

Permalink
Add a bit more detail to the extra kwargs warning
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-dG committed Nov 1, 2019
1 parent b3449ee commit 98aca71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/template.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ function Template(::Val{false}; kwargs...)
end
end

isempty(kwargs) || @warn "Unrecognized keywords were supplied" kwargs
if !isempty(kwargs)
@warn "Unrecognized keywords were supplied, see the documentation for help" kwargs
end

t = Template(authors, dir, host, julia, plugins, user)
foreach(p -> validate(p, t), t.plugins)
Expand Down

0 comments on commit 98aca71

Please sign in to comment.