Fix logic error when dumping non-function objects
This commit is contained in:
parent
aa4cd9daf8
commit
5be42470c3
|
@ -1285,7 +1285,7 @@ function Item:dump(verbose)
|
||||||
print 'description:'
|
print 'description:'
|
||||||
print(self.description)
|
print(self.description)
|
||||||
end
|
end
|
||||||
if #self.params > 0 then
|
if self.params and #self.params > 0 then
|
||||||
print 'parameters:'
|
print 'parameters:'
|
||||||
for _,p in ipairs(self.params) do
|
for _,p in ipairs(self.params) do
|
||||||
print('',p,self.params.map[p])
|
print('',p,self.params.map[p])
|
||||||
|
|
Loading…
Reference in New Issue