Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
db0a1332
Commit
db0a1332
authored
Mar 24, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always read output of appledoc and raise when there's an error.
parent
d3bd2989
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
command.rb
lib/cocoapods/command.rb
+1
-1
documentation.rb
lib/cocoapods/generator/documentation.rb
+6
-7
No files found.
lib/cocoapods/command.rb
View file @
db0a1332
...
...
@@ -57,7 +57,7 @@ module Pod
rescue
Exception
=>
e
if
e
.
is_a?
(
Informative
)
puts
e
.
message
puts
*
e
.
backtrace
if
Config
.
instance
.
verbose
puts
*
e
.
backtrace
if
Config
.
instance
.
verbose
?
else
puts
ErrorReport
.
report
(
e
)
end
...
...
lib/cocoapods/generator/documentation.rb
View file @
db0a1332
...
...
@@ -94,16 +94,15 @@ module Pod
arguments
+=
[
'--print-settings'
]
if
config
.
verbose?
arguments
+=
files
.
map
(
&
:to_s
)
process
=
Open4
.
popen4
(
'appledoc'
,
*
arguments
)
do
|
_
,
_
,
output
,
error
|
if
config
.
verbose?
puts
output
.
read
.
chomp
puts
error
.
read
.
chomp
end
output
=
error
=
nil
process
=
Open4
.
popen4
(
'appledoc'
,
*
arguments
)
do
|
_
,
__
,
out
,
err
|
output
,
error
=
out
.
read
,
err
.
read
end
# appledoc exits with 1 if a warning was logged
if
process
.
exited?
&&
(
process
.
exitstatus
>=
2
)
&&
!
config
.
silent?
puts
"[!] Appledoc encountered an error. Run 'pod install --verbose' for details."
if
process
.
exitstatus
>=
2
puts
output
,
error
raise
"Appledoc encountered an error."
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment