Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

raising.
  • Loading branch information...
commit 071fc84d184c815797087c137d1a4603a768b8b8 1 parent 190391d
@fabiopelosin fabiopelosin authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/cocoapods/generator/documentation.rb
View
10 lib/cocoapods/generator/documentation.rb
@@ -65,7 +65,9 @@ def appledoc_options
'--ignore', '.m',
'--keep-undocumented-objects',
'--keep-undocumented-members',
- '--keep-intermediate-files'
+ '--keep-intermediate-files',
+ '--exit-threshold', '2'
+ # appledoc exits with 1 if a warning was logged
]
index = index_file
options += ['--index-desc', index] if index
@@ -82,9 +84,9 @@ def generate(install = false)
@pod.chdir do
appledoc Escape.shell_command(options)
end
- # appledoc exits with 1 if a warning was logged
- if $?.exitstatus >= 2
- raise "Appledoc encountered an error (exitstatus: #{$?.exitstatus})."
+
+ if $?.exitstatus != 0
+ puts "[!] Appledoc encountered an error (exitstatus: #{$?.exitstatus}), an update might be avilable to solve the issue." unless config.silent?
end
rescue Informative
Please sign in to comment.
Something went wrong with that request. Please try again.