Skip to content

Commit

Permalink
Merge pull request #255 from doronbehar/patch-1
Browse files Browse the repository at this point in the history
Fix error in 'pl.lapp.process_options_string'
  • Loading branch information
stevedonovan committed Jul 16, 2017
2 parents 81e0048 + 5ff83d6 commit 347aec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/pl/lapp.lua
Expand Up @@ -313,8 +313,8 @@ function lapp.process_options_string(str,args)
ps.converter = converter
end
ps.constraint = types[vtype].constraint
elseif not builtin_types[vtype] then
lapp.error(vtype.." is unknown type")
elseif not builtin_types[vtype] and vtype then
lapp.error(vtype.." is unknown type")
end
parms[optparm] = ps
end
Expand Down

0 comments on commit 347aec3

Please sign in to comment.