mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2025-12-12 06:20:12 +01:00
fix(doc-util): print info message when docstring can't get parsed (#33)
This commit is contained in:
parent
794fed0c46
commit
be3cfab4d8
1 changed files with 15 additions and 2 deletions
|
|
@ -244,11 +244,20 @@
|
|||
(depth == 0)
|
||||
)
|
||||
|
||||
|
||||
// Field definition
|
||||
else if std.startsWith(key, '#')
|
||||
then (
|
||||
local realKey = key[1:];
|
||||
if 'value' in obj[key]
|
||||
|
||||
if !std.isObject(obj[key])
|
||||
then
|
||||
std.trace(
|
||||
'INFO: docstring "%s" cannot be parsed, ignored while rendering.' % key,
|
||||
{}
|
||||
)
|
||||
|
||||
else if 'value' in obj[key]
|
||||
then {
|
||||
values+: [root.sections.value(
|
||||
key,
|
||||
|
|
@ -272,7 +281,11 @@
|
|||
depth
|
||||
)],
|
||||
}
|
||||
else {}
|
||||
else
|
||||
std.trace(
|
||||
'INFO: docstring "%s" cannot be parsed, ignored while rendering.' % key,
|
||||
{}
|
||||
)
|
||||
)
|
||||
|
||||
// subPackage definition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue