Commit 071fc84d authored by Fabio Pelosin's avatar Fabio Pelosin

[Generator::Documentation #184] Print appledoc errors instead of

raising.
parent 190391dc
...@@ -65,7 +65,9 @@ module Pod ...@@ -65,7 +65,9 @@ module Pod
'--ignore', '.m', '--ignore', '.m',
'--keep-undocumented-objects', '--keep-undocumented-objects',
'--keep-undocumented-members', '--keep-undocumented-members',
'--keep-intermediate-files' '--keep-intermediate-files',
'--exit-threshold', '2'
# appledoc exits with 1 if a warning was logged
] ]
index = index_file index = index_file
options += ['--index-desc', index] if index options += ['--index-desc', index] if index
...@@ -82,9 +84,9 @@ module Pod ...@@ -82,9 +84,9 @@ module Pod
@pod.chdir do @pod.chdir do
appledoc Escape.shell_command(options) appledoc Escape.shell_command(options)
end end
# appledoc exits with 1 if a warning was logged
if $?.exitstatus >= 2 if $?.exitstatus != 0
raise "Appledoc encountered an error (exitstatus: #{$?.exitstatus})." puts "[!] Appledoc encountered an error (exitstatus: #{$?.exitstatus}), an update might be avilable to solve the issue." unless config.silent?
end end
rescue Informative rescue Informative
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment