Skip to content

Commit

Permalink
Fix @required
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Jun 27, 2017
1 parent 8ac75dd commit ba178f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
dist: trusty
sudo: required
sudo: true
os:
- osx
- linux
Expand Down
2 changes: 1 addition & 1 deletion src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ macro required(keywords...)
for keyword in keywords
push!(blocks, quote
err_msg = string($(string(keyword)), " is required")
$keyword === nothing && error(err_msg)
$(esc(keyword)) === nothing && error(err_msg)
end)
end
quote
Expand Down

0 comments on commit ba178f0

Please sign in to comment.