Skip to content

Commit

Permalink
Combine @warn arguments into a single String
Browse files Browse the repository at this point in the history
  • Loading branch information
schmrlng committed Oct 3, 2018
1 parent 6475277 commit a5cb6ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gentypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function addtype!(mod::ROSMsgModule, typ::String)
if !(typ in mod.members)
@debug("Message type import: ", _fullname(mod), ".", typ)
if _nameconflicts(typ)
@warn("Message type '$typ' conflicts with Julia builtin, ",
@warn("Message type '$typ' conflicts with Julia builtin, " *
"will be imported as '$(_jl_safe_name(typ,"Msg"))'")
end
pymod, pyobj = _pyvars(_fullname(mod), typ)
Expand Down Expand Up @@ -512,7 +512,7 @@ function _addtypemember!(exprs, namestr, typestr)
jlconargs = exprs[4].args[2].args

if typestr == "char" || typestr == "byte"
@warn("Use of type '$typestr' is deprecated in message definitions, ",
@warn("Use of type '$typestr' is deprecated in message definitions, " *
"use '$(lowercase(string(_ros_builtin_types[typestr])))' instead.")
end

Expand Down

0 comments on commit a5cb6ca

Please sign in to comment.