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
748ea86f
Commit
748ea86f
authored
Feb 27, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ErrorReport] Include exception class
parent
66e926b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
error_report.rb
lib/cocoapods/user_interface/error_report.rb
+5
-5
No files found.
lib/cocoapods/user_interface/error_report.rb
View file @
748ea86f
...
...
@@ -7,7 +7,7 @@ module Pod
module
UserInterface
module
ErrorReport
class
<<
self
def
report
(
e
rror
)
def
report
(
e
xception
)
return
<<-
EOS
#{
'――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――'
.
reversed
}
...
...
@@ -36,16 +36,16 @@ Repositories : #{repo_information.join("\n ")}
### Error
```
#{
e
rror
.
message
}
#{
e
rror
.
backtrace
.
join
(
"
\n
"
)
}
#{
e
xception
.
class
}
-
#{
exception
.
message
}
#{
e
xception
.
backtrace
.
join
(
"
\n
"
)
}
```
#{
'――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――'
.
reversed
}
#{
'[!] Oh no, an error occurred.'
.
red
}
#{
error_from_podfile
(
e
rror
)
}
#{
error_from_podfile
(
e
xception
)
}
#{
'Search for existing github issues similar to yours:'
.
yellow
}
#{
"https://github.com/CocoaPods/CocoaPods/issues/search?q=
#{
CGI
.
escape
(
e
rror
.
message
)
}
"
}
#{
"https://github.com/CocoaPods/CocoaPods/issues/search?q=
#{
CGI
.
escape
(
e
xception
.
message
)
}
"
}
#{
'If none exists, create a ticket, with the template displayed above, on:'
.
yellow
}
https://github.com/CocoaPods/CocoaPods/issues/new
...
...
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